summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Include optional subclass flags, such as inbounds, nsw, etc., ...", thisDaniel Dunbar2009-09-0616-349/+243
| | | | | | breaks MiniSAT on x86_64. llvm-svn: 81098
* Fix spacing.Daniel Dunbar2009-09-061-1/+1
| | | | llvm-svn: 81097
* Now that googletest can print ConstantRange, use EXPECT_EQ when testing forNick Lewycky2009-09-051-149/+149
| | | | | | | equality. Prefer EXPECT_EQ(foo, Full) over EXPECT_TRUE(foo.isFullSet()) because the former will print out the contents of the constant range that failed. llvm-svn: 81094
* Teach googletest to use raw_ostream instead of just std::ostream.Jeffrey Yasskin2009-09-053-8/+26
| | | | | | | | This can break when there are implicit conversions from types raw_ostream understands but std::ostream doesn't, but it increases the number of cases that Just Work. llvm-svn: 81093
* Quote another '%S' in a test.Daniel Dunbar2009-09-051-2/+2
| | | | llvm-svn: 81088
* Rename %S metavar to %M (clang uses %S for the basename of the test file).Daniel Dunbar2009-09-057-23/+23
| | | | llvm-svn: 81087
* Temporary test files should use %t.Daniel Dunbar2009-09-052-6/+6
| | | | llvm-svn: 81086
* Don't depend on arch specific global prefix.Daniel Dunbar2009-09-051-1/+1
| | | | llvm-svn: 81084
* Eliminate uses of %prcontext.Daniel Dunbar2009-09-0516-27/+67
| | | | | | | - I'd appreciate it if someone else eyeballs my changes to make sure I captured the intent of the test. llvm-svn: 81083
* opt: Add -S option to print output as LLVM assembly.Daniel Dunbar2009-09-051-5/+14
| | | | llvm-svn: 81082
* Eliminate some Tclisms.Daniel Dunbar2009-09-052-2/+2
| | | | llvm-svn: 81081
* Delete unused #include.Benjamin Kramer2009-09-051-4/+3
| | | | llvm-svn: 81076
* Stabilize the order of live intervals in the priority_queue used by theBob Wilson2009-09-053-5/+8
| | | | | | | | | | | | | linear scan reg alloc. This fixes a problem I ran into where extracting a function from a larger file caused the generated code to change (masking the problem I was trying to debug) because the allocator behaved differently. This changes the results for two X86 regression checks. stack-color-with-reg is improved, with one less instruction, but pr3495 is worse, with one more copy. As far as I can tell, these tests were just getting lucky or unlucky, so I've changed the expected results. llvm-svn: 81060
* Detect VLAs.Devang Patel2009-09-051-1/+5
| | | | | | Do not use DenseMap operator[] because it inserts new entry if lookup fails. Use find() to check an entry in a DenseMap first. llvm-svn: 81058
* Ignore malformed global variable debug info.Devang Patel2009-09-041-0/+4
| | | | llvm-svn: 81055
* Prune #includes.Benjamin Kramer2009-09-041-3/+0
| | | | llvm-svn: 81052
* Remove an unneeded call to c_str().Benjamin Kramer2009-09-041-1/+1
| | | | llvm-svn: 81051
* Added AsmToken enum constants to MCAsmLexer.h for '[', ']', '{', and '}' inKevin Enderby2009-09-042-1/+5
| | | | | | | preparation of supporting other targets. Then changed the lexer to parse these as tokens. llvm-svn: 81050
* Added the AsmToken::Hash enum constant to MCAsmLexer.h in preparation ofKevin Enderby2009-09-045-26/+49
| | | | | | | | supporting other targets. Changed the code to pass MCAsmInfo to the parser and the lexer. Then changed the lexer to use CommentString from MCAsmInfo instead of a literal '#' character. llvm-svn: 81046
* While replacing an MDNode elment, properly update MDNode's operand list. Devang Patel2009-09-043-3/+292
| | | | | | MDNode's operand list does not include all elements. llvm-svn: 81045
* Prevent warnings on compilers for which its not clear that assert won't return.Andreas Neustifter2009-09-041-0/+1
| | | | llvm-svn: 81044
* Removed yet another std::ostream reference.Lang Hames2009-09-041-3/+0
| | | | llvm-svn: 81042
* Removed some junk and a std::ostream operator that was hanging around.Lang Hames2009-09-041-59/+0
| | | | llvm-svn: 81041
* Replaces uses of unsigned for indexes in LiveInterval and VNInfo withLang Hames2009-09-0412-609/+945
| | | | | | | | a new class, MachineInstrIndex, which hides arithmetic details from most clients. This is a step towards allowing the register allocator to update/insert code during allocation. llvm-svn: 81040
* Test for llvm-gcc commit 81037.Dale Johannesen2009-09-041-0/+7
| | | | llvm-svn: 81038
* Updated tests to use ProfileVerifer to test ProfileLoader and ProfileEstimator.Andreas Neustifter2009-09-042-3/+13
| | | | | | (Keep disabled test disabled until selfhosted build issue is resolved.) llvm-svn: 81008
* Cleaned up ProfileVerifierPass.Andreas Neustifter2009-09-041-57/+78
| | | | | | (See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090831/086219.html) llvm-svn: 81007
* Converted MaximumSpanningTree algorithm to a generic template, this could goAndreas Neustifter2009-09-044-138/+64
| | | | | | into llvm/ADT. llvm-svn: 81001
* Include optional subclass flags, such as inbounds, nsw, etc., in theDan Gohman2009-09-0416-243/+349
| | | | | | | | | | | | | | | | | Constant uniquing tables. This allows distinct ConstantExpr objects with the same operation and different flags. Even though a ConstantExpr "a + b" is either always overflowing or never overflowing (due to being a ConstantExpr), it's still necessary to be able to represent it both with and without overflow flags at the same time within the IR, because the safety of the flag may depend on the context of the use. If the constant really does overflow, it wouldn't ever be safe to use with the flag set, however the use may be in code that is never actually executed. This also makes it possible to merge all the flags tests into a single test. llvm-svn: 80998
* Use delete[] to match new[] (found by valgrind).Duncan Sands2009-09-041-1/+1
| | | | llvm-svn: 80997
* Run branch folding if if-converter make some transformations.Evan Cheng2009-09-045-85/+188
| | | | llvm-svn: 80994
* Fix comment for consistency sake.Evan Cheng2009-09-041-1/+1
| | | | llvm-svn: 80993
* Remove stale greps.Daniel Dunbar2009-09-041-3/+0
| | | | llvm-svn: 80986
* Update lib deps.Daniel Dunbar2009-09-041-1/+1
| | | | llvm-svn: 80985
* Convert tests to FileCheck.Bob Wilson2009-09-042-6/+55
| | | | llvm-svn: 80983
* Whitespace cleanupJim Grosbach2009-09-041-23/+23
| | | | llvm-svn: 80978
* If there's a calling convention attach it to the rewind function call.Eric Christopher2009-09-041-1/+3
| | | | llvm-svn: 80976
* Convert a test to FileCheck.Bob Wilson2009-09-041-5/+17
| | | | llvm-svn: 80975
* Funky indentation.Evan Cheng2009-09-031-1/+2
| | | | llvm-svn: 80971
* Revert "--- Reverse-merging r80908 into '.':", I already "fixed" this.Daniel Dunbar2009-09-034-1/+346
| | | | llvm-svn: 80970
* Revert 80959. It isn't sufficient to solve the full problem. And itDan Gohman2009-09-039-22/+92
| | | | | | introduced regressions in the Ocaml bindings tests. llvm-svn: 80969
* Replace ocamlc tests with ocamlopt tests since they're less noisy.Erick Tryzelaar2009-09-039-17/+17
| | | | | | | | | | There's a bug with ocamlc that uses "char*" instead of "const char*" for global string variables. This causes g++ to be very noisy when linking ocamlc programs. That's why the ocaml test used to cat to /dev/null. ocamlopt doesn't have this problem, so we can get rid of the >/dev/null, which may obscure some problems. llvm-svn: 80968
* --- Reverse-merging r80908 into '.':Bill Wendling2009-09-034-346/+1
| | | | | | | | | | | D test/Analysis/Profiling --- Reverse-merging r80907 into '.': U lib/Analysis/ProfileInfoLoaderPass.cpp Attempt to remove failure in the self-hosting build bot. llvm-svn: 80966
* Add test for PR4873, which works for me.Daniel Dunbar2009-09-031-0/+8
| | | | llvm-svn: 80965
* LLVM currently represents floating-point negation as -0.0 - x. FixDan Gohman2009-09-033-0/+40
| | | | | | | FastISel to recognize this pattern and emit a floating-point negation using xor. llvm-svn: 80963
* Don't crash when target has no itineraries.David Goodwin2009-09-031-54/+58
| | | | llvm-svn: 80962
* If we've pushed registers onto the stack, but aren't adjusting the stack pointerBill Wendling2009-09-031-2/+2
| | | | | | | (i.e., there are no local variables and stuff), we still need to output FDE information for the pushed registers. llvm-svn: 80960
* Remove the API for creating ConstantExprs with the nsw, nuw, inbounds,Dan Gohman2009-09-039-92/+22
| | | | | | | | | | | | | | | and exact flags. Because ConstantExprs are uniqued, creating an expression with this flag causes all expressions with the same operands to have the same flag, which may not be safe. Add, sub, mul, and sdiv ConstantExprs are usually folded anyway, so the main interesting flag here is inbounds, and the constant folder already knows how to set the inbounds flag automatically in most cases, so there isn't an urgent need for the API support. This can be reconsidered in the future, but for now just removing these API bits eliminates a source of potential trouble with little downside. llvm-svn: 80959
* Create our own block initializer for kill fixups as the scheduling one ↵David Goodwin2009-09-031-33/+63
| | | | | | wasn't doing the right thing. llvm-svn: 80958
* Calls clobber FPSCR.David Goodwin2009-09-032-4/+4
| | | | llvm-svn: 80956
OpenPOWER on IntegriCloud