summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Fix FP_TO_UINT->i32 on ppc32 -mcpu=g5. This wasDale Johannesen2009-06-043-16/+17
| | | | | | | | | | | | | | using Promote which won't work because i64 isn't a legal type. It's easy enough to use Custom, but then we have the problem that when the type legalizer is promoting FP_TO_UINT->i16, it has no way of telling it should prefer FP_TO_SINT->i32 to FP_TO_UINT->i32. I have uncomfortably hacked this by making the type legalizer choose FP_TO_SINT when both are Custom. This fixes several regressions in the testsuite. llvm-svn: 72891
* RALinScan::attemptTrivialCoalescing() was returning a virtual register ↵Evan Cheng2009-06-042-3/+57
| | | | | | instead of the physical register it is allocated to. This resulted in virtual register(s) being added the live-in sets. llvm-svn: 72890
* A value defined by an implicit_def can be liven to a use BB. This is ↵Evan Cheng2009-06-041-0/+18
| | | | | | unfortunate. But register allocator still has to add it to the live-in set of the use BB. llvm-svn: 72889
* A value defined by an implicit_def can be liven to a use BB. This is ↵Evan Cheng2009-06-041-0/+263
| | | | | | unfortunate. But register allocator still has to add it to the live-in set of the use BB. llvm-svn: 72888
* CMake: Use explicit dependencies for Xcode (as well as MSVC), to makeDouglas Gregor2009-06-045-37/+59
| | | | | | the CMake-generated Xcode project build properly. llvm-svn: 72883
* <rdar://problem/6944342> libLTO for darwin should add -static when assembling .sNick Kledzik2009-06-041-0/+4
| | | | llvm-svn: 72881
* Removed SimpleRewriter.Lang Hames2009-06-041-82/+2
| | | | llvm-svn: 72880
* For XTARGET to work on targets not in the list,Dale Johannesen2009-06-042-0/+2
| | | | | | | there must also be an XFAIL line. Fix a couple examples of this. llvm-svn: 72876
* Check in test changes that I accidentally left out of r72872.Dan Gohman2009-06-042-8/+9
| | | | llvm-svn: 72875
* Properly detect malloc_zone_statistics in CMake build systemDouglas Gregor2009-06-042-1/+3
| | | | llvm-svn: 72873
* Don't do the X * 0.0 -> 0.0 transformation in instcombine, becauseDan Gohman2009-06-043-10/+16
| | | | | | | | instcombine doesn't know when it's safe. To partially compensate for this, introduce new code to do this transformation in dagcombine, which can use UnsafeFPMath. llvm-svn: 72872
* Fix comments.Dan Gohman2009-06-041-2/+2
| | | | llvm-svn: 72870
* --plugin is not needed for bfd anymore. Update docs.Torok Edwin2009-06-041-2/+11
| | | | llvm-svn: 72867
* Remove unused code.Sanjiv Gupta2009-06-041-10/+0
| | | | llvm-svn: 72866
* CMake: Renamed LLVM_ENABLE_ASSERTS toOscar Fuentes2009-06-042-6/+15
| | | | | | | | | LLVM_ENABLE_ASSERTIONS. Fine-tuned the logic that controls the definition of NDEBUG and _DEBUG macros. Thanks to Jay Foad for this suggestions. llvm-svn: 72864
* Custom lower SUB with two register operands.Sanjiv Gupta2009-06-041-0/+1
| | | | llvm-svn: 72861
* Fix comments.Torok Edwin2009-06-042-3/+3
| | | | llvm-svn: 72858
* Add support for outputting ANSI colors to raw_fd_ostream.Torok Edwin2009-06-045-0/+215
| | | | llvm-svn: 72854
* PR3739, part 2: Use an explicit store to spill XMM registers. (Previously,Eli Friedman2009-06-042-4/+29
| | | | | | the code tried to use "push", which doesn't exist for XMM registers.) llvm-svn: 72836
* PR3739, part 1: Disable the red zone on Win64.Eli Friedman2009-06-042-1/+11
| | | | llvm-svn: 72830
* Remove a #include of <iostream>.Dan Gohman2009-06-041-1/+0
| | | | llvm-svn: 72828
* Re-apply 72756 with fixes. One of those was introduced by we changed ↵Evan Cheng2009-06-042-2/+8
| | | | | | MachineInstrBuilder::addReg() interface. llvm-svn: 72826
* Removed more testing code that snuck in earlier.Lang Hames2009-06-041-20/+2
| | | | llvm-svn: 72825
* <rdar://problem/6940611> libLTO.dylib needs to let linker specify path to ↵Nick Kledzik2009-06-045-11/+46
| | | | | | | | | | | assembler Add lto_codegen_set_assembler_path() API which allows the linker to specify the path to the assembler tool to run. When assembler is used (instead of compiler) different command line options are used. Add LTO_API_VERSION #define so clients (linkers) can conditionalize use of new APIs. llvm-svn: 72823
* Use uint8_t and int32_t in {JIT,Machine}CodeEmitersBruno Cardoso Lopes2009-06-045-117/+113
| | | | llvm-svn: 72821
* Evan says it's wrong; back out 72808.Stuart Hastings2009-06-031-2/+0
| | | | llvm-svn: 72817
* <rdar://problem/6941517> C++ static constructors not preserved for static ↵Nick Kledzik2009-06-031-13/+14
| | | | | | | | executable using LTO Move setRelocationModel() to be called before TargetMachine is instantiated. llvm-svn: 72816
* Change LTO to run the global opt pass twice.Daniel Dunbar2009-06-033-10/+3
| | | | | | | | | | | | | | | | | | | | | - This matches llvm-ld. It took a bit of archeology to figure out what the right thing to do was (whether this was intentionally added or intentionally removed). My final conclusion is that Chris added this intentionally here: http://llvm.org/viewvc/llvm-project?view=rev&revision=16913 but the changes weren't propogated to llvm-ld until here: http://llvm.org/viewvc/llvm-project?view=rev&revision=34058 which was after lto.cpp had been cloned off (of llvm-ld), here: http://llvm.org/viewvc/llvm-project?view=rev&revision=29494 From the commit message, it looks like the motivation for running global opt again is because we ran it prior to inlining. Based on that I updated the comment and also only run the pass if we actually ran the inliner. Chris, please review. llvm-svn: 72811
* PR4317: Handle splits where the new block is unreachable correctly in Eli Friedman2009-06-032-2/+22
| | | | | | DominatorTreeBase::Split. llvm-svn: 72810
* Recognize another euphemism for MOVDQ2Q.Stuart Hastings2009-06-031-0/+2
| | | | llvm-svn: 72808
* For Darwin / x86_64, override -relocation-model=static to pic if the output ↵Evan Cheng2009-06-035-23/+10
| | | | | | | | is assembly since Darwin assembler does not really support -static codeine. I view this as a temporary workaround until the assembler / linker changes. llvm-svn: 72806
* Add createStandardLTOPasses to StandardPasses.h, and move lto and llvm-ld over.Daniel Dunbar2009-06-033-119/+110
| | | | | | | - I know it sounds crazy, but I think all the pass lists are now coalesced into StandardPasses.h. llvm-svn: 72805
* Convert Alpha and Mips to use a MachineFunctionInfo subclass toDan Gohman2009-06-0310-65/+205
| | | | | | | | | | carry GlobalBaseReg, and GlobalRetAddr too in Alpha's case. This eliminates the need for them to search through the MachineRegisterInfo livein list in order to identify these virtual registers. EmitLiveInCopies is now the only user of the virtual register portion of MachineRegisterInfo's livein data. llvm-svn: 72802
* Remove the redundant TM member from X86DAGToDAGISel; replace itDan Gohman2009-06-031-12/+22
| | | | | | | with an accessor method which simply casts the parent class SelectionDAGISel's TM to the target-specific type. llvm-svn: 72801
* Don't attempt to simplify an non-affine IV expression if it can'tDan Gohman2009-06-033-12/+53
| | | | | | be simplified to a loop-invariant value. This fixes PR4315. llvm-svn: 72798
* Make the buildbot see green (to make it easier to spot the next personMike Stump2009-06-031-1/+2
| | | | | | that puts a new warning in). llvm-svn: 72797
* Switch opt to using StandardPasses.hDaniel Dunbar2009-06-031-126/+21
| | | | | | - No functionality change, but please check if you don't believe me. llvm-svn: 72789
* Remove some silly code.Daniel Dunbar2009-06-031-1/+1
| | | | llvm-svn: 72788
* Add StandardPasses.h which embeds the standard compilation passes shared byDaniel Dunbar2009-06-031-0/+149
| | | | | | | clang/llvm-gcc. - Implemented as inline functions for linking simplicity. llvm-svn: 72786
* Move ELFCodeEmiter stuff to new filesBruno Cardoso Lopes2009-06-034-140/+184
| | | | llvm-svn: 72785
* Revert 72650Bruno Cardoso Lopes2009-06-035-113/+117
| | | | llvm-svn: 72783
* Remove unnecessary #includes.Dan Gohman2009-06-031-3/+0
| | | | llvm-svn: 72782
* Emit file directives correctly in case of a .bc is generated by llvm-ld ↵Sanjiv Gupta2009-06-033-11/+34
| | | | | | after linking in several .bc files. llvm-svn: 72781
* lets not forget about c++!Torok Edwin2009-06-031-0/+1
| | | | llvm-svn: 72778
* FrameIndex could be used as a value (addressof (arg)) or as an address.Sanjiv Gupta2009-06-034-6/+62
| | | | | | | Expand it exactly like GlobalAddress. Fix some more crashes (InsertBranch() not being implemented) for compiling hitec libs. llvm-svn: 72776
* CMake: Added missing source file to lib/CodeGen/CMakeLists.txt.Oscar Fuentes2009-06-031-0/+1
| | | | llvm-svn: 72775
* CMake: Implements and documents option LLVM_ENABLE_ASSERTS.Oscar Fuentes2009-06-033-1/+16
| | | | llvm-svn: 72774
* Document how easy it is to use the gold plugin and have LTO with autotooled ↵Torok Edwin2009-06-031-0/+29
| | | | | | | | projects. Please correct the documentation if I missed anything. llvm-svn: 72773
* Fixed a bug in which signed comparisons were being used instead of unsigned ↵Sanjiv Gupta2009-06-032-2/+4
| | | | | | comparisons. llvm-svn: 72771
* Avoid a warning "'U' might be used uninitialized inDuncan Sands2009-06-031-1/+1
| | | | | | this function" when using a not-too-smart compiler. llvm-svn: 72768
OpenPOWER on IntegriCloud