Dan Gohman
d131e18dd0
Add a testcase for the GlobalOpt inbounds fix.
...
llvm-svn: 81168
2009-09-07 23:04:59 +00:00
Chris Lattner
ec72b9bbcf
describe undef semantics in some more detail.
...
llvm-svn: 81167
2009-09-07 22:52:39 +00:00
Dan Gohman
02e363ed52
Add inbounds to these getelementptrs, now that GlobalOpt requires this,
...
to preserve the meaning of these tests.
llvm-svn: 81166
2009-09-07 22:45:41 +00:00
Dan Gohman
161429fe7e
Don't commit stores with addresses that have indices that are not
...
compile-time constant integers or that are out of bounds for their
corresponding static array types. These can cause aliasing that
GlobalOpt assumes won't happen.
llvm-svn: 81165
2009-09-07 22:44:55 +00:00
Dan Gohman
82e747580f
Don't commit addresses of aggregate values. This avoids problems with
...
an aggregate store overlapping a different aggregate store, despite
the stores having distinct addresses.
llvm-svn: 81164
2009-09-07 22:42:05 +00:00
Dan Gohman
beee35a277
Fix GlobalOpt to avoid committing a store if the address getelementptr
...
is missing the inbounds flag. This is slightly conservative, but it
avoids problems with two constants pointing to the same address but
getting distinct entries in the Memory DenseMap.
llvm-svn: 81163
2009-09-07 22:40:13 +00:00
Dan Gohman
19244eaa4a
Preserve the InBounds flag when evaluating a getelementptr instruction
...
into a getelementptr ConstantExpr.
llvm-svn: 81162
2009-09-07 22:34:43 +00:00
Dan Gohman
f7f3fb1133
Simplify this code by using hasDefinitiveInitializer().
...
llvm-svn: 81161
2009-09-07 22:31:26 +00:00
Anders Carlsson
5995a3e8fa
BuildCXXConstructExpr now takes a MultiExprArg.
...
llvm-svn: 81160
2009-09-07 22:23:31 +00:00
Chris Lattner
e48704b8da
tighten test.
...
llvm-svn: 81159
2009-09-07 22:15:23 +00:00
Chris Lattner
3b134cd72a
tweak test, add PR#
...
llvm-svn: 81158
2009-09-07 22:14:41 +00:00
Nick Lewycky
d7fb16d895
Express this in the canonical way.
...
llvm-svn: 81157
2009-09-07 21:50:24 +00:00
Nick Lewycky
3fc89804a6
Homogenize whitespace.
...
llvm-svn: 81156
2009-09-07 20:44:51 +00:00
Daniel Dunbar
d6b6c59729
Use -output-prefix in bugpoint tests so that outputs go in temp directory (and
...
we don't race on them).
llvm-svn: 81155
2009-09-07 19:26:18 +00:00
Daniel Dunbar
a53337f731
Add -output-prefix option to bugpoint (to change the default output name).
...
llvm-svn: 81154
2009-09-07 19:26:11 +00:00
Daniel Dunbar
7fcfc4fc31
Don't depend on Tcl behavior of redirecting stderr for all commands in a
...
pipeline.
llvm-svn: 81153
2009-09-07 19:26:02 +00:00
Daniel Dunbar
0367b0f136
Avoid Tcl substitution, introduced %llvmgcc_only for this one little test
...
(%llvmgcc includes a '-w' argument, and this test looks for warnings).
llvm-svn: 81152
2009-09-07 19:25:54 +00:00
Anders Carlsson
85ec4ffaf5
Check that the destination type of a static_cast expression is a complete type.
...
llvm-svn: 81151
2009-09-07 18:25:47 +00:00
Benjamin Kramer
635444bcea
More <sstream> removal.
...
llvm-svn: 81150
2009-09-07 12:33:46 +00:00
Benjamin Kramer
b178ab2155
Remove unnecessary #include <sstream>.
...
llvm-svn: 81147
2009-09-07 11:12:05 +00:00
Duncan Sands
cd32ecf44f
Using a signal handler that does nothing should be
...
equivalent to SIG_IGN.
llvm-svn: 81144
2009-09-07 05:58:25 +00:00
Mike Stump
e73d5ca9a8
Refine vcall offsets. Cleanups. WIP.
...
llvm-svn: 81143
2009-09-07 04:27:52 +00:00
Daniel Dunbar
8feee907e4
Update unittests for MDNode uniquing disable.
...
llvm-svn: 81142
2009-09-07 04:19:02 +00:00
Daniel Dunbar
10fcf3354b
Disable MDNode uniquing.
...
- Hopefully this unbreaks some llvm-gcc bootstraps.
llvm-svn: 81141
2009-09-07 04:05:49 +00:00
Daniel Dunbar
01d7e3b54a
Document opt -S argument.
...
llvm-svn: 81140
2009-09-07 04:03:44 +00:00
Daniel Dunbar
d027a92431
Use a SetVector for tracking some Obj-C metadata, to ensure deterministic
...
output.
- Also, cleanup code to output inline asm references.
llvm-svn: 81139
2009-09-07 00:20:42 +00:00
Eric Christopher
66d8555f7e
Fix comment.
...
llvm-svn: 81138
2009-09-06 22:20:54 +00:00
Anton Korobeynikov
d2c19c74d6
Do not create calls via PLT in compilation callback - this is higly platform
...
dependent. Hopefully, this will fix PR3801.
llvm-svn: 81132
2009-09-06 20:21:48 +00:00
Duncan Sands
4827538f82
Do not try to override non-virtual methods, especially
...
when the new method gives the same result as the original
(as far as I can see). This will hopefully pacify icc.
llvm-svn: 81131
2009-09-06 20:02:00 +00:00
Fariborz Jahanian
f0ff9832ba
Test for generation of objc_assign_strongCast in a variety of
...
situations.
llvm-svn: 81129
2009-09-06 19:44:57 +00:00
Duncan Sands
bfb9719dad
Remove a left over bit of code with no effect.
...
llvm-svn: 81128
2009-09-06 19:29:07 +00:00
Duncan Sands
6c643bd25d
Avoid warnings if assertions are off.
...
llvm-svn: 81127
2009-09-06 19:28:38 +00:00
Duncan Sands
8a2aa38c55
Remove unreachable code.
...
llvm-svn: 81126
2009-09-06 19:27:53 +00:00
Duncan Sands
3ee3c174b1
Simplify. Testing shows that this is not equivalent to BBI = CR.CaseBB + 1.
...
llvm-svn: 81124
2009-09-06 18:03:32 +00:00
Anders Carlsson
faf1ced5ee
Reapply 81096, now with a fix. Spot the bug:
...
for (unsigned i = numargs; i < NumArgs; ++i)
Args[0] = 0;
;)
llvm-svn: 81123
2009-09-06 16:54:02 +00:00
Duncan Sands
6bd6a72e73
Avoid an unused variable warning when assertions are
...
disabled.
llvm-svn: 81122
2009-09-06 16:27:34 +00:00
Duncan Sands
6d46e7689c
Change "const static" to "static const", as warned about
...
by icc (#82 ). Patch by Erick Tryzelaar.
llvm-svn: 81117
2009-09-06 13:10:36 +00:00
Duncan Sands
d216b05e75
Mark more constants unsigned, as warned about by icc ( #68 ).
...
Patch by Erick Tryzelaar.
llvm-svn: 81116
2009-09-06 12:56:52 +00:00
Duncan Sands
89720bbd11
Remove some not-really-used variables, as warned
...
about by icc (#593 , partial). Patch by Erick Tryzelaar.
llvm-svn: 81115
2009-09-06 12:41:19 +00:00
Benjamin Kramer
2b37efaf53
More MSVC warning fixes:
...
1. DUPMAX is defined in regcomp.c, no need to redefine it in regutils.
2. MSVC doesn't like snprintf, use _snprintf instead.
llvm-svn: 81114
2009-09-06 12:26:28 +00:00
Duncan Sands
8234cdb68f
Remove strange 'const' qualifiers, as warned about by icc
...
(#411 ). Patch by Erick Tryzelaar.
llvm-svn: 81113
2009-09-06 12:16:26 +00:00
Benjamin Kramer
e3c9d23bea
It's a bool, so treat it like one. Fixes a MSVC warning.
...
llvm-svn: 81112
2009-09-06 12:10:17 +00:00
Duncan Sands
b986b8ffe7
Mark constants as unsigned, as pointed out by icc
...
warnings (#174 ). Patch by Erick Tryzelaar.
llvm-svn: 81111
2009-09-06 11:45:14 +00:00
Duncan Sands
44d423ac93
Tweak code into an equivalent form for which icc
...
doesn't warn about unreachable instructions. Patch
by Erick Tryzelaar (#111 ).
llvm-svn: 81110
2009-09-06 10:53:22 +00:00
Benjamin Kramer
63951ada31
Fix an integer truncation noticed by MSVC.
...
llvm-svn: 81109
2009-09-06 09:35:10 +00:00
Benjamin Kramer
0e098e9df7
Remove splint hints to silence warnings from ICC and MSVC.
...
llvm-svn: 81108
2009-09-06 09:29:39 +00:00
Duncan Sands
0f5bbb585c
Public and private corrections, warned about by icc ( #304 ).
...
Patch by Erick Tryzelaar.
llvm-svn: 81107
2009-09-06 08:55:57 +00:00
Duncan Sands
2fbeaf084f
Remove some unused variables and methods warned about by
...
icc (#177 , partial). Patch by Erick Tryzelaar.
llvm-svn: 81106
2009-09-06 08:33:48 +00:00
Duncan Sands
109e762a57
Remove unneeded declaration, as warned about by
...
icc (#1170 ). Patch by Erick Tryzelaar.
llvm-svn: 81104
2009-09-06 07:23:28 +00:00
Daniel Dunbar
86c6a6ef0f
Fix a possible crash call setIsInBounds.
...
- I think there are more instances of this, but I think they are fixed in Dan's
incoming patch. This one was preventing me from doing a bugpoint reduction
though.
llvm-svn: 81103
2009-09-06 02:31:36 +00:00