summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed encoding bits typo of ldrexd/strexd.Johnny Chen2009-12-141-2/+2
| | | | llvm-svn: 91327
* Thumb2 atomic operationsJim Grosbach2009-12-141-44/+83
| | | | llvm-svn: 91321
* Move several function bodies which are rarely inlined out of line.Dan Gohman2009-12-141-0/+67
| | | | llvm-svn: 91319
* fix an obvious bug found by clang++ and collapse a redundant if.Chris Lattner2009-12-141-7/+6
| | | | | | | | | | | Here's the diagnostic from clang: /Volumes/Data/dgregor/Projects/llvm/lib/Target/CppBackend/CPPBackend.cpp:989:23: warning: 'gv' is always NULL in this context         printConstant(gv);                       ^ 1 diagnostic generated. llvm-svn: 91318
* Micro-optimize these functions in the case where they are not inlined.Dan Gohman2009-12-141-2/+1
| | | | llvm-svn: 91316
* correct selection requirements for thumb2 vs. arm versions of the barrier ↵Jim Grosbach2009-12-142-4/+6
| | | | | | intrinsics llvm-svn: 91313
* add Thumb2 atomic and memory barrier instruction definitionsJim Grosbach2009-12-141-0/+60
| | | | llvm-svn: 91310
* whitespaceJim Grosbach2009-12-141-1/+0
| | | | llvm-svn: 91307
* ARM memory barrier instructions are not predicableJim Grosbach2009-12-142-3/+20
| | | | llvm-svn: 91305
* Clear the Processed set when it is no longer used, and clear theDan Gohman2009-12-141-1/+2
| | | | | | IVUses list in releaseMemory(). llvm-svn: 91296
* Fix a thinko; isNotAlreadyContainedIn had a built-in negative, so theDan Gohman2009-12-142-2/+2
| | | | | | condition was inverted when the code was converted to contains(). llvm-svn: 91295
* Remove unnecessary #includes.Dan Gohman2009-12-141-2/+0
| | | | llvm-svn: 91293
* Instead of having a ScalarEvolution pointer member in BasedUser, just passDan Gohman2009-12-141-12/+13
| | | | | | the ScalarEvolution pointer into the functions which need it. llvm-svn: 91289
* Don't bother cleaning up if there's nothing to clean up.Dan Gohman2009-12-141-6/+6
| | | | llvm-svn: 91288
* Delete an unused variable.Dan Gohman2009-12-141-10/+1
| | | | llvm-svn: 91287
* Drop Loop::isNotAlreadyContainedIn in favor of Loop::contains. TheDan Gohman2009-12-141-1/+1
| | | | | | former was just exposing a LoopInfoBase implementation detail. llvm-svn: 91286
* add ldrexd/strexd instructionsJim Grosbach2009-12-141-2/+11
| | | | llvm-svn: 91284
* LSR itself doesn't need LoopInfo.Dan Gohman2009-12-141-6/+2
| | | | llvm-svn: 91283
* LSR itself doesn't need DominatorTree.Dan Gohman2009-12-141-6/+2
| | | | llvm-svn: 91282
* Remove the code in LSR that manually hoists expansions out of loops;Dan Gohman2009-12-141-29/+9
| | | | | | SCEVExpander does this automatically. llvm-svn: 91281
* Minor code cleanups.Dan Gohman2009-12-141-4/+2
| | | | llvm-svn: 91280
* Use DW_AT_specification to point to DIE describing function declaration.Devang Patel2009-12-142-63/+32
| | | | llvm-svn: 91278
* Add "generic" fallback.Torok Edwin2009-12-141-0/+1
| | | | | | | gcc warned that the function may not have a return value, indeed for non-intel and non-amd X86 CPUs it is right (VIA, etc.). llvm-svn: 91276
* Added CalcSpillWeights to CMakeLists.Lang Hames2009-12-141-0/+1
| | | | llvm-svn: 91275
* Whitespace changes, comment clarification. No functional changes.Bill Wendling2009-12-142-18/+29
| | | | llvm-svn: 91274
* Moved spill weight calculation out of SimpleRegisterCoalescing and into its ↵Lang Hames2009-12-146-114/+160
| | | | | | own pass: CalculateSpillWeights. llvm-svn: 91273
* revert r91184, because it causes a crash on a .bc file I justChris Lattner2009-12-141-366/+390
| | | | | | sent to Bob. llvm-svn: 91268
* atomic binary operations up to 32-bits wide.Jim Grosbach2009-12-141-5/+63
| | | | llvm-svn: 91260
* Reinstate r91208 to fix available_externally linkage for globals, withJeffrey Yasskin2009-12-131-1/+1
| | | | | | | nlewycky's fix to add -rdynamic so the JIT can look symbols up in Linux builds of the JITTests binary. llvm-svn: 91250
* Using _MSC_VER there was wrong, better just use the already existing ifdefs forTorok Edwin2009-12-131-5/+4
| | | | | | | x86 CPU detection for the X86 getHostCPUName too, and create a simple getHostCPUName that returns "generic" for all else. llvm-svn: 91240
* Don't leave pointers uninitialized in the default constructor. GCC complainsChandler Carruth2009-12-131-1/+1
| | | | | | about the potential use of these uninitialized members under certain conditions. llvm-svn: 91239
* Fix weird typo which leads to unallocated memory access for nodes with 4 ↵Anton Korobeynikov2009-12-131-1/+1
| | | | | | results. llvm-svn: 91233
* Do not allow uninitialize access during debug printingAnton Korobeynikov2009-12-131-2/+2
| | | | llvm-svn: 91232
* More info on this transformation.Eli Friedman2009-12-121-2/+15
| | | | llvm-svn: 91230
* Remove some stuff that's already implemented. Also, remove the note aboutEli Friedman2009-12-121-51/+0
| | | | | | merging x >u 5 and x <s 20 because it's impossible to implement. llvm-svn: 91228
* Disable r91104 for x86. It causes partial register stall which pessimize ↵Evan Cheng2009-12-121-12/+12
| | | | | | code in 32-bit. llvm-svn: 91223
* Implement variable-width shifts.Anton Korobeynikov2009-12-123-7/+170
| | | | | | No testcase yet - it seems we're exposing generic codegen bugs. llvm-svn: 91221
* Add comment about potential partial register stall.Evan Cheng2009-12-121-0/+5
| | | | llvm-svn: 91220
* Fix an obvious bug. No test case since LEA16r is not being used.Evan Cheng2009-12-121-1/+1
| | | | llvm-svn: 91219
* Enable CPU detection when using MS VS 2k8 too.Torok Edwin2009-12-121-1/+1
| | | | | | | MSVS2k8 doesn't define __i386__, hence all the CPU detection code was disabled. Enable it by looking for _MSC_VER. llvm-svn: 91217
* Revert r91208. Something on Linux prevents the JIT from looking up a symbolJeffrey Yasskin2009-12-121-1/+1
| | | | | | defined in the test, and I don't have time tonight to figure it out. llvm-svn: 91209
* Fix available_externally linkage for globals. It's probably still notJeffrey Yasskin2009-12-121-1/+1
| | | | | | supported by emitGlobals, but I don't have a test case for that. llvm-svn: 91208
* Framework for atomic binary operations. The emitter for the pseudo instructionsJim Grosbach2009-12-123-19/+150
| | | | | | | just issues an error for the moment. The front end won't yet generate these intrinsics for ARM, so this is behind the scenes until complete. llvm-svn: 91200
* Revise scalar replacement to be more flexible about handle bitcasts and GEPs.Bob Wilson2009-12-111-390/+366
| | | | | | | | | | | | | | | While scanning through the uses of an alloca, keep track of the current offset relative to the start of the alloca, and check memory references to see if the offset & size correspond to a component within the alloca. This has the nice benefit of unifying much of the code from isSafeUseOfAllocation, isSafeElementUse, and isSafeUseOfBitCastedAllocation. The code to rewrite the uses of a promoted alloca, after it is determined to be safe, is reorganized in the same way. Also, when rewriting GEP instructions, mark them as "in-bounds" since all the indices are known to be safe. llvm-svn: 91184
* Delete an unnecessary line. The VTSDNode on a SIGN_EXTEND_REG is neverDan Gohman2009-12-111-1/+0
| | | | | | a vector type. llvm-svn: 91181
* Lower setcc branchless, if this is profitable.Anton Korobeynikov2009-12-112-2/+86
| | | | | | Based on the patch by Brian Lucas! llvm-svn: 91175
* Don't try to move a MBB into the fall-through position if it's a landing pad orBill Wendling2009-12-112-29/+26
| | | | | | | | | | | | | | branches only to a landing pad. Without this check, the compiler would go into an infinite loop because the branch to a landing pad is an "abnormal" edge which wasn't being taken into account. This is the meat of that fix: if (!PrevBB.canFallThrough() && !MBB->BranchesToLandingPad(MBB)) { The other stuff is simplification of the "branches to a landing pad" code. llvm-svn: 91161
* Construct CompileUnits lazily.Devang Patel2009-12-112-10/+12
| | | | llvm-svn: 91159
* Implement vector widening, splitting, and scalarizing for SIGN_EXTEND_INREG.Dan Gohman2009-12-118-32/+85
| | | | llvm-svn: 91158
* memory barrier instructions by definition have side effects. This prevents ↵Jim Grosbach2009-12-111-1/+1
| | | | | | the post-RA scheduler from moving them around. llvm-svn: 91150
OpenPOWER on IntegriCloud