summaryrefslogtreecommitdiffstats
path: root/llvm/lib
Commit message (Collapse)AuthorAgeFilesLines
* Put a threshold on the number of users PointerMayBeCapturedDan Gohman2009-12-081-0/+16
| | | | | | | | | | | | examines; fall back to a conservative answer if there are more. This works around some several compile time problems resulting from BasicAliasAnalysis calling PointerMayBeCaptured. The value has been chosen arbitrarily. This fixes rdar://7438917 and may partially address PR5708. llvm-svn: 90905
* make sure that PHITransAddr keeps its 'InstInputs' list up toChris Lattner2009-12-081-3/+42
| | | | | | date when instsimplify kicks in. llvm-svn: 90901
* Revert 90858 90875 and 90805 for now.Devang Patel2009-12-083-181/+173
| | | | llvm-svn: 90898
* - Support inline asm 'w' constraint for 128-bit vector types.Evan Cheng2009-12-082-0/+6
| | | | | | - Also support the 'q' NEON registers asm code. llvm-svn: 90894
* Some superficial cleanups.Bob Wilson2009-12-081-4/+3
| | | | llvm-svn: 90866
* Clean up dead operands left around after SROA replaces a mem intrinsic.Bob Wilson2009-12-081-0/+6
| | | | | | | I'm not aware that this does anything significant on its own, but it's needed for another patch that I'm working on. llvm-svn: 90864
* Cleanup.Devang Patel2009-12-082-167/+82
| | | | | | There is no need to supply ModuleCU to addType() as a parameter. llvm-svn: 90858
* Do not try to push dead variable's debug info into namespace info.Devang Patel2009-12-081-3/+5
| | | | llvm-svn: 90857
* Remove useless calls to c_str().Benjamin Kramer2009-12-081-4/+3
| | | | llvm-svn: 90855
* Teach GlobalOpt to delete aliases with internal linkage (afterDuncan Sands2009-12-081-21/+20
| | | | | | | forwarding any uses). GlobalDCE can also do this, but is only run at -O3. llvm-svn: 90850
* fix a typo (and -> add) and fix GetAvailablePHITranslatedSubExpr to not Chris Lattner2009-12-081-3/+6
| | | | | | side-effect the current object. llvm-svn: 90837
* Remove unnecessary #include "llvm/LLVMContext.h".Nick Lewycky2009-12-083-3/+0
| | | | llvm-svn: 90836
* whitespace cleanupChris Lattner2009-12-081-1/+1
| | | | llvm-svn: 90834
* Reduce (cmp 0, and_su (foo, bar)) into (bit foo, bar). This saves extra ↵Anton Korobeynikov2009-12-081-1/+65
| | | | | | instruction. Patch inspired by Brian Lucas! llvm-svn: 90819
* Watch out for duplicated PHI instructions.Evan Cheng2009-12-071-3/+37
| | | | llvm-svn: 90816
* Follow up to 90488. Turn a check into an assertion.Evan Cheng2009-12-071-2/+2
| | | | llvm-svn: 90815
* Fix the OProfileJITEventListener for StringRef being returned from debug info.Jeffrey Yasskin2009-12-071-12/+6
| | | | llvm-svn: 90813
* Rename DIFactory::InsertValue() as DIFactory::InsertDbgValueIntrinsic()Victor Hernandez2009-12-071-6/+8
| | | | llvm-svn: 90807
* Add support to emit debug info for c++ style namespaces.Devang Patel2009-12-073-8/+99
| | | | llvm-svn: 90805
* Delete code accidentally left behind.Evan Cheng2009-12-071-10/+0
| | | | llvm-svn: 90804
* fix typoChris Lattner2009-12-071-1/+1
| | | | llvm-svn: 90793
* add accessor, improve comment.Chris Lattner2009-12-071-1/+1
| | | | llvm-svn: 90792
* Introduce the "@llvm.dbg.value" debug intrinsic.Victor Hernandez2009-12-071-0/+29
| | | | | | | | | | | The semantics of llvm.dbg.value are that starting from where it is executed, an offset into the specified user source variable is specified to get a new value. An example: call void @llvm.dbg.value(metadata !{ i32 7 }, i64 0, metadata !2) Here the user source variable associated with metadata #2 gets the value "i32 7" at offset 0. llvm-svn: 90788
* add support for phi translation and incorpation of new expression.Chris Lattner2009-12-071-121/+144
| | | | llvm-svn: 90782
* Don't enable the post-RA scheduler on x86 except at -O3. In itsDan Gohman2009-12-071-1/+1
| | | | | | current form, it is too expensive in compile time. llvm-svn: 90781
* checkpoint of the new PHITransAddr code, still not done and not used byChris Lattner2009-12-071-29/+257
| | | | | | anything. llvm-svn: 90779
* Pre-regalloc tale duplication. Work in progress.Evan Cheng2009-12-072-91/+231
| | | | llvm-svn: 90759
* Fixes the Atomic implementation if compiled by MSVC compiler.Oscar Fuentes2009-12-071-1/+1
| | | | | | | | | sys::cas_flag should be long on this platform, InterlockedAdd() is defined only for the Itanium architecture (according to MSDN). Patch by Michael Beck! llvm-svn: 90748
* If BB is empty, insert PHI before end() instead of front().Evan Cheng2009-12-071-3/+6
| | | | llvm-svn: 90744
* Some pretty-printingAnton Korobeynikov2009-12-071-0/+1
| | | | llvm-svn: 90742
* Truncate the arguments of llvm.frameaddress / llvm.returnaddress intrinsics ↵Anton Korobeynikov2009-12-072-1/+13
| | | | | | from i32 to platform's largest native type llvm-svn: 90741
* Add lowering of returnaddr and frameaddr intrinsics. Shamelessly stolen from ↵Anton Korobeynikov2009-12-073-1/+65
| | | | | | x86 :) llvm-svn: 90740
* Initial codegen support for MSP430 ISRsAnton Korobeynikov2009-12-074-8/+54
| | | | llvm-svn: 90739
* Add MSP430 interrupt calling conv. No functionality change yet.Anton Korobeynikov2009-12-074-0/+7
| | | | llvm-svn: 90738
* Add ability to select hw multiplier mode and select appropriate libcalls.Anton Korobeynikov2009-12-071-0/+29
| | | | llvm-svn: 90737
* Dynamic stack realignment use of sp register as source/dest registerAnton Korobeynikov2009-12-061-4/+27
| | | | | | | | | | in "bic sp, sp, #15" leads to unpredicatble behaviour in Thumb2 mode. Emit the following code instead: mov r4, sp bic r4, r4, #15 mov sp, r4 llvm-svn: 90724
* fix PR5698Chris Lattner2009-12-061-0/+5
| | | | llvm-svn: 90708
* constant fold loads from memcpy's from global constants. This is importantChris Lattner2009-12-061-6/+46
| | | | | | | because clang lowers nontrivial automatic struct/array inits to memcpy from a global array. llvm-svn: 90698
* add support for forwarding mem intrinsic values to non-local loads.Chris Lattner2009-12-061-33/+71
| | | | llvm-svn: 90697
* Handle forwarding local memsets to loads. For example, we optimize this:Chris Lattner2009-12-061-43/+136
| | | | | | | | | | | short x(short *A) { memset(A, 1, sizeof(*A)*100); return A[42]; } to 'return 257' instead of doing the load. llvm-svn: 90695
* Remove old DBG_LABEL code.Dan Gohman2009-12-051-8/+0
| | | | llvm-svn: 90669
* Remove the unused DisableLegalizeTypes option and related code.Dan Gohman2009-12-052-52/+47
| | | | llvm-svn: 90668
* Calling InvalidateEntry during the refinement was breaking the bootstrap.Bill Wendling2009-12-051-2/+12
| | | | llvm-svn: 90656
* Final cleanups:Bill Wendling2009-12-051-14/+2
| | | | | | | - Privatize a typedef. - Call the InvalidateEntry when refining a type. llvm-svn: 90655
* Temporarily revert r90502. It was causing the llvm-gcc bootstrap on PPC to fail.Bill Wendling2009-12-052-95/+51
| | | | llvm-svn: 90653
* Fix indentation in switch statement.Nick Lewycky2009-12-051-15/+16
| | | | llvm-svn: 90650
* Generalize this optimization to work on equality comparisons between any twoNick Lewycky2009-12-051-16/+27
| | | | | | integers that are constant except for a single bit (the same n-th bit in each). llvm-svn: 90646
* Don't print a space before the : between the file name and line number.Dan Gohman2009-12-051-2/+2
| | | | | | And separate the directory and file name with a '/'. llvm-svn: 90641
* Inline methods which are called only once.Bill Wendling2009-12-051-15/+3
| | | | llvm-svn: 90640
* Refactor some code. No functionality change.Bill Wendling2009-12-051-9/+13
| | | | llvm-svn: 90639
OpenPOWER on IntegriCloud