Chris Lattner
f427ad4f49
this was not supposed to be committed
...
llvm-svn: 82409
2009-09-20 22:36:11 +00:00
Chris Lattner
63735b5e10
implement and document support for CHECK-NOT
...
llvm-svn: 82408
2009-09-20 22:35:26 +00:00
Chris Lattner
4552cc1387
rewrite FileCheck in terms of StringRef instead of manual pointer pairs.
...
llvm-svn: 82407
2009-09-20 22:11:44 +00:00
Chris Lattner
a9a2b9a4cc
improve memdep to eliminate bitcasts (and aliases, and noop geps)
...
early for the stated reasons: this allows it to find more
equivalences and depend less on code layout.
llvm-svn: 82404
2009-09-20 21:00:18 +00:00
Chris Lattner
b7d34131d1
Move CoerceAvailableValueToLoadType earlier in GVN.cpp. Hook it up
...
so that nonlocal and partially redundant loads can use it as well.
The testcase shows examples of craziness this can handle. This triggers
*many* times in 176.gcc.
llvm-svn: 82403
2009-09-20 20:09:34 +00:00
Chris Lattner
279ec561c6
change the interface to CoerceAvailableValueToLoadType to be
...
more generic.
llvm-svn: 82402
2009-09-20 19:31:14 +00:00
Daniel Dunbar
2974b9671a
Teach 'make check-all' to build the site configuration for clang, if it is in tree.
...
llvm-svn: 82400
2009-09-20 19:04:28 +00:00
Chris Lattner
6bae20046f
enhance GVN to forward substitute a stored value to a load
...
(and load -> load) when the base pointers must alias but when
they are different types. This occurs very very frequently in
176.gcc and other code that uses bitfields a lot.
llvm-svn: 82399
2009-09-20 19:03:47 +00:00
Chris Lattner
5963cbb9c9
update an entry, delete an entry which has been fixed.
...
llvm-svn: 82398
2009-09-20 17:37:38 +00:00
Chris Lattner
3568d49264
tidy up
...
llvm-svn: 82397
2009-09-20 17:32:21 +00:00
Bill Wendling
69ad4a0004
--- Reverse-merging r82282 into '.':
...
U lib/CodeGen/AsmPrinter/DwarfException.cpp
U lib/CodeGen/AsmPrinter/DwarfException.h
--- Reverse-merging r82274 into '.':
U lib/Target/TargetLoweringObjectFile.cpp
G lib/CodeGen/AsmPrinter/DwarfException.cpp
These revisions were breaking everything.
llvm-svn: 82396
2009-09-20 09:13:15 +00:00
Chris Lattner
3cd0d66e5f
remove a temporary hack.
...
llvm-svn: 82395
2009-09-20 07:47:59 +00:00
Chris Lattner
64f72086ad
rename X86ATTAsmPrinter.cpp -> X86AsmPrinter.cpp likewise the .h file.
...
llvm-svn: 82394
2009-09-20 07:41:30 +00:00
Chris Lattner
9f43a427c6
move target registry stuff to X86ATTAsmPrinter.cpp
...
llvm-svn: 82393
2009-09-20 07:39:06 +00:00
Chris Lattner
a07073da96
simplify this now that createX86CodePrinterPass is trivial
...
llvm-svn: 82392
2009-09-20 07:37:51 +00:00
Chris Lattner
271256b7a8
rename X86ATTAsmPrinter class -> X86AsmPrinter
...
llvm-svn: 82391
2009-09-20 07:35:34 +00:00
Chris Lattner
f34b09b112
remove the asmstring, it is now dead. Improve comment.
...
llvm-svn: 82390
2009-09-20 07:32:00 +00:00
Nick Lewycky
ecb17d4648
Peer through zext and sext to eliminate them when it is safe to do so.
...
llvm-svn: 82389
2009-09-20 07:31:25 +00:00
Chris Lattner
d56be552eb
kill off printPICLabel now, it's specialness is handled by
...
the MachineInstr ->MCInst lowering process, not in the
asmprinter.
llvm-svn: 82388
2009-09-20 07:28:26 +00:00
Chris Lattner
efc89d59f7
delete X86IntelAsmPrinter! Now -x86-asm-syntax just switches
...
the instruction syntax, not the entire asmprinter.
llvm-svn: 82387
2009-09-20 07:25:17 +00:00
Nick Lewycky
991c5185bb
Fold 'icmp eq (icmp), true' into an xor(icmp).
...
llvm-svn: 82386
2009-09-20 07:21:39 +00:00
Chris Lattner
f411f53f9c
Add an intel syntax MCInstPrinter implementation. You can now
...
transcode from AT&T to intel syntax with "llvm-mc foo.s -output-asm-variant=1"
llvm-svn: 82385
2009-09-20 07:17:49 +00:00
Chris Lattner
268bcdc194
tidy up
...
llvm-svn: 82384
2009-09-20 07:16:54 +00:00
Nick Lewycky
c09c2772d5
Rewrite this check so that it checks what it's supposed to and doesn't use
...
CHECK-NOT.
llvm-svn: 82383
2009-09-20 07:00:24 +00:00
Chris Lattner
fd910fd2f7
eliminate a use of strtoul.
...
llvm-svn: 82382
2009-09-20 06:58:54 +00:00
Chris Lattner
0076b1c63f
split random COFF asmprinter state out to X86COFFMachineModuleInfo.h.
...
Make dllexport directives come out in determinstic order.
llvm-svn: 82381
2009-09-20 06:45:52 +00:00
Nick Lewycky
cd6475ebe9
Correct the comment; this applies to fcmp too.
...
llvm-svn: 82380
2009-09-20 06:27:35 +00:00
Nick Lewycky
13510f330b
Remove tab, again.
...
llvm-svn: 82379
2009-09-20 06:26:34 +00:00
Nick Lewycky
5cbc7c4ae9
Teach the constant folder how to not a cmpinst.
...
llvm-svn: 82378
2009-09-20 06:24:51 +00:00
Chris Lattner
acb70ff251
smallvectorize getExtraOptionNames
...
llvm-svn: 82377
2009-09-20 06:21:43 +00:00
Chris Lattner
f1dd47fa9d
add a helper method.
...
llvm-svn: 82376
2009-09-20 06:21:20 +00:00
Chris Lattner
cacb071233
minor cleanups.
...
llvm-svn: 82375
2009-09-20 06:18:38 +00:00
Daniel Dunbar
4364c48cdb
Add 'make check-all', which runs the LLVM tests along with the clang tests if
...
its in the standard location.
llvm-svn: 82374
2009-09-20 06:17:21 +00:00
Daniel Dunbar
b8eed72232
Follow googletest logic for suppressing warnings in unittests/UnitTestMain.
...
llvm-svn: 82373
2009-09-20 06:17:12 +00:00
Chris Lattner
b1db248193
strength reduce further StringRef-> const char*, saving another 620 bytes.
...
llvm-svn: 82372
2009-09-20 05:53:47 +00:00
Nick Lewycky
93d1111b1c
Try turning icmp(bitcast(x), bitcast(y)) into icmp(bitcast(bitcast(x)), y) in
...
the hopes that the two bitcasts will merge.
llvm-svn: 82371
2009-09-20 05:48:50 +00:00
Chris Lattner
b7eb454f66
switch an std::string to StringRef, shaving 400 bytes off CommandLine.o
...
llvm-svn: 82370
2009-09-20 05:48:01 +00:00
Nick Lewycky
b96f9df101
Remove tabs I added.
...
llvm-svn: 82369
2009-09-20 05:47:45 +00:00
Chris Lattner
346c1f60db
the switch from std::map -> StringMap caused --help output to be in
...
non-sorted order, restore the sort.
llvm-svn: 82368
2009-09-20 05:37:24 +00:00
Chris Lattner
483832f33a
eliminate the duplicate detection loop, moving it into the loop that populates the Opts vector in the first place.
...
llvm-svn: 82367
2009-09-20 05:22:52 +00:00
Chris Lattner
5b8c4b309a
Eliminate a masochistic "algorithm" loop, shrinking CommandLine.o from 71524->70700 bytes.
...
llvm-svn: 82366
2009-09-20 05:18:28 +00:00
Chris Lattner
3a20fca97c
don't use count + insert, just do insert + failure. Also, instead of deleting from
...
the middle of a vector, swap the last element in and pop_back. Also saves 330 bytes :)
llvm-svn: 82365
2009-09-20 05:15:12 +00:00
Chris Lattner
488639ad3b
switch to SmallPtrSet instead of std::set, saving 1K from the
...
release-asserts .o file (72900->71856).
llvm-svn: 82364
2009-09-20 05:12:14 +00:00
Chris Lattner
80674c762c
change an std::sort to an array_pod_sort call, shrinking CommandLine.o by 9%.
...
llvm-svn: 82363
2009-09-20 05:06:23 +00:00
Chris Lattner
6a6a75896d
Several changes together in a murky mess:
...
1. Change some "\n" -> '\n'.
2. eliminte some std::string's by using raw_ostream::indent.
3. move a bunch of code out of the main arg parser routine into
a new static HandlePrefixedOrGroupedOption function.
4. Greatly simplify the implementation of getOptionPred, and make
it avoid splitting prefix options at = when that doesn't match
a non-prefix option.
llvm-svn: 82362
2009-09-20 05:03:30 +00:00
Nick Lewycky
42065f1555
Clean up the usage of evaluateICmpRelation's return value.
...
Add another line to the ConstantExprFold test to demonstrate the GEPs may not
wrap around in either the signed or unsigned senses.
llvm-svn: 82361
2009-09-20 04:27:06 +00:00
Daniel Dunbar
16b2c02cd3
Fix refacto, this code was expecting to stride past the argument prefix.
...
llvm-svn: 82360
2009-09-20 04:03:41 +00:00
Daniel Dunbar
4e33798de0
Strip trailing whitespace.
...
llvm-svn: 82359
2009-09-20 04:03:34 +00:00
Daniel Dunbar
27de063176
A few more tabs -> spaces.
...
llvm-svn: 82358
2009-09-20 04:03:25 +00:00
Nick Lewycky
261d7a49b1
Remove dead store by taking a guess at what Chris meant. I wasn't able to
...
design a testcase that would tickle this behaviour.
llvm-svn: 82357
2009-09-20 03:48:46 +00:00