summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Rewrite the overflow checking in the get{Signed,Unsigned}Range code forDan Gohman2010-04-121-10/+34
| | | | | | | | | AddRecs so that it checks for overflow in the computation that it is performing, rather than just checking hasNo{Signed,Unsigned}Wrap, since those flags are for a different computation. This fixes a bug that impacts an upcoming change. llvm-svn: 101028
* Use RecursivelyDeleteTriviallyDeadInstructions in EliminateIVComparisons,Dan Gohman2010-04-121-3/+12
| | | | | | | | instead of deleting just the user. This makes it more consistent with other code in IndVarSimplify, and theoretically can eliminate more users earlier. llvm-svn: 101027
* Enable post regalloc machine licm by default.Evan Cheng2010-04-122-5/+141
| | | | llvm-svn: 101023
* Remove use of exceptions from bugpoint. No deliberate functionality change!Nick Lewycky2010-04-1210-341/+463
| | | | llvm-svn: 101013
* Verify function prototypes before trying to optimize functions. We alsoEric Christopher2010-04-123-8/+53
| | | | | | | | | | need TargetData, just return false if we don't have it. Update testcases accordingly. Fixes PR6807. llvm-svn: 101011
* Remove unnecessary parens.Dan Gohman2010-04-122-4/+4
| | | | llvm-svn: 101010
* Minor code simplification.Dan Gohman2010-04-121-1/+1
| | | | llvm-svn: 101009
* Re-apply r101000, with a fix: Don't eliminate an icmp which is part ofDan Gohman2010-04-122-1/+129
| | | | | | | | the loop exit test. This usually doesn't come up for a variety of reasons, but it isn't impossible, so make IndVarSimplify handle it conservatively. llvm-svn: 101008
* whether we enable dylibs or not depends on the host, not the target.Chris Lattner2010-04-121-1/+1
| | | | llvm-svn: 101007
* Revert 101000, which is breaking self-host builds.Dan Gohman2010-04-122-78/+0
| | | | llvm-svn: 101002
* Fix indentation.Dan Gohman2010-04-111-1/+1
| | | | llvm-svn: 101001
* Teach IndVarSimplify how to eliminate comparisons involving inductionDan Gohman2010-04-112-0/+78
| | | | | | | | | | | | | variables. For example, with code like this: for (i=0;i<n;++i) if (i<n) x[i] = 0; IndVarSimplify will now recognize that i is always less than n inside the loop, and eliminate the if. llvm-svn: 101000
* Enhance ScalarEvolution::isKnownPredicate with support forDan Gohman2010-04-112-8/+40
| | | | | | loop conditions which are invariants. llvm-svn: 100995
* Minor code simplification.Dan Gohman2010-04-111-2/+1
| | | | llvm-svn: 100994
* When creating a ConstantRange for [n,UINT_MAX], special case n == 0, becauseDan Gohman2010-04-111-3/+4
| | | | | | ConstantRange(0, 0) creates an empty range rather than a full one. llvm-svn: 100993
* Fix a comment.Dan Gohman2010-04-111-1/+1
| | | | llvm-svn: 100992
* Add a cast to void to show that the return value is beingDan Gohman2010-04-111-1/+1
| | | | | | intentionally ignored. llvm-svn: 100984
* Delete a dead check.Dan Gohman2010-04-111-1/+0
| | | | llvm-svn: 100983
* Delete dead code.Dan Gohman2010-04-111-26/+0
| | | | llvm-svn: 100981
* Fix a #include.Dan Gohman2010-04-111-1/+1
| | | | llvm-svn: 100980
* Rename isLoopGuardedByCond to isLoopEntryGuardedByCond, to emphasiseDan Gohman2010-04-114-21/+21
| | | | | | | that it's only testing for the entry condition, not full loop-invariant conditions. llvm-svn: 100979
* utostr isn't going away too soon, try to make it slightly smaller.Benjamin Kramer2010-04-111-13/+8
| | | | llvm-svn: 100977
* Remove dead argument and clean whitespace. No functionality change.Nick Lewycky2010-04-103-16/+6
| | | | llvm-svn: 100954
* Implement support for varargs functions without any fixedChris Lattner2010-04-102-31/+23
| | | | | | | | parameters in the CBE by implicitly adding a fixed argument. This allows eliminating a work-around from DAE. Patch by Sylvere Teissier! llvm-svn: 100944
* configure: Fix default value for optimize_option, I messed up the test conditionDaniel Dunbar2010-04-102-6/+13
| | | | | | | | | | | | | | | | | in r86005 and unintentionally changed the default from -O3 to -O2. - It's odd the things automated perf testing turns up! :) - Also, the configure diff is messed up slightly. It looks like someone either didn't regenerate configure correctly (or I didn't), or autoconf has some funnyness in it. Eric, any ideas? This has been at -O2 for so long, that I am slightly nervous that this change will uncover miscompiles of LLVM on other systems. If that is the case, I think we should just set the default universally at -O3, and let developers/vendors use -O3 if they want it and have tested it. llvm-svn: 100941
* fix PR6743, a case where we'd delete an instruction before using itChris Lattner2010-04-102-1/+20
| | | | | | in some cases. llvm-svn: 100937
* fix PR6760, a missing check in heap SRoA.Chris Lattner2010-04-102-2/+29
| | | | llvm-svn: 100936
* turn an assert into a proper check, fixing crash on invalid here:Chris Lattner2010-04-101-2/+1
| | | | | | | | | | | $ llvm-as t.ll llvm-as: t.ll:1:6: error: expected 'type' after '=' %0 = = type { i32, float, float, double } ^ PR6810. llvm-svn: 100934
* improve haiku portability, patch by Paul Davey.Chris Lattner2010-04-101-0/+2
| | | | llvm-svn: 100933
* add attributes and module level asm to the ocaml bindings,Chris Lattner2010-04-105-33/+93
| | | | | | patch by Patrick Walton! llvm-svn: 100932
* Updated the edis build mechanism to allow for buildsSean Callanan2010-04-103-1/+31
| | | | | | | that do not build some (or all) of the targets that edis supports. llvm-svn: 100910
* Fix a typo and some indentation.Dan Gohman2010-04-091-2/+2
| | | | llvm-svn: 100908
* When determining a canonical insert position, don't climb deeperDan Gohman2010-04-092-33/+103
| | | | | | | | into adjacent loops. Also, ensure that the insert position is dominated by the loop latch of any loop in the post-inc set which has a latch. llvm-svn: 100906
* Tidy whitespace.Bob Wilson2010-04-091-9/+8
| | | | llvm-svn: 100904
* If all the bit positions are not specified; do not decode the instructions.Johnny Chen2010-04-092-9/+15
| | | | | | | | | | We are bound to fail! For proper disassembly, the well-known encoding bits of the instruction must be fully specified. This also removes pseudo instructions from considerations of disassembly, which is a better design and less fragile than the name matchings. llvm-svn: 100899
* suck the propagating "has dynamic libs" check into a single makefile Chris Lattner2010-04-093-3/+9
| | | | | | variable TARGET_HAS_DYNAMIC_LIBS llvm-svn: 100896
* add minix support, patch by Kees van Reeuwijk! PR6797Chris Lattner2010-04-096-4/+27
| | | | llvm-svn: 100895
* clean this up, fix std::min ambiguity on some platforms.Chris Lattner2010-04-091-7/+5
| | | | llvm-svn: 100894
* Adding IPSCCP and Internalize passes to the C-bindingsWesley Peck2010-04-092-0/+15
| | | | llvm-svn: 100893
* Provide versions of the ARM eh_sjlj_setjmp instructions for non-VFP subtargetsBob Wilson2010-04-093-2/+37
| | | | | | | | | such that the non-VFP versions have no implicit defs of VFP registers. If any callee-saved VFP registers are marked as having been defined, the prologue/epilogue code will try to save and restore them. Radar 7770432. llvm-svn: 100892
* Move 'Optional' class from Clang to LLVM/ADT.Ted Kremenek2010-04-091-0/+66
| | | | llvm-svn: 100889
* ARM decoder emitter should print out useful information unconditionally when itJohnny Chen2010-04-091-17/+19
| | | | | | encounters decoding conflicts, instead of wrapping it inside the DEBUG() macro. llvm-svn: 100886
* When emitting code for an add, don't force a SCEVUnknown wrapper aroundDan Gohman2010-04-092-3/+41
| | | | | | | a hoisted intermediate result if the intermediate result isn't an Instruction. llvm-svn: 100884
* When looking for loop-invariant users, look through no-op instructions,Dan Gohman2010-04-091-3/+11
| | | | | | | so that an unfortunately placed bitcast doesn't pin a value in a register. llvm-svn: 100883
* Make sure this test tests something.Benjamin Kramer2010-04-091-3/+7
| | | | llvm-svn: 100879
* Fix a grammaro.Bob Wilson2010-04-091-1/+1
| | | | llvm-svn: 100877
* Add a testcase for svn r100568.Bob Wilson2010-04-091-0/+23
| | | | llvm-svn: 100876
* "On SPU, variables in the .bss section that are allocated with the .lcomm ↵Chris Lattner2010-04-092-1/+2
| | | | | | | | | | directive are not aligned on 16 byte boundaries. This causes misaligned loads, as the generated assembly assumes this "default" alignment. this patch disables .lcomm in favour of '.local .comm' Patch by Kalle Raisklia! llvm-svn: 100875
* Add a comment.Dan Gohman2010-04-091-1/+2
| | | | llvm-svn: 100874
* Fix up header comments to match the comment fixups I made in r100849.Bob Wilson2010-04-091-5/+3
| | | | llvm-svn: 100869
OpenPOWER on IntegriCloud