#
aa99c94e |
| 01-Nov-2009 |
Chris Lattner <sabre@nondot.org> |
Revert 85678/85680. The decision is to stay with the current form of indirectbr, thus we don't need "blockaddr(@func, null)". Eliminate it for simplicity.
llvm-svn: 85699
|
#
b2c0e243 |
| 31-Oct-2009 |
Chris Lattner <sabre@nondot.org> |
Make blockaddress(@func, null) be valid, and make 'deleting a basic block with a blockaddress still referring to it' replace the invalid blockaddress with a new blockaddress(@func, null) instead of
Make blockaddress(@func, null) be valid, and make 'deleting a basic block with a blockaddress still referring to it' replace the invalid blockaddress with a new blockaddress(@func, null) instead of a inttoptr(1).
This changes the bitcode encoding format, and still needs codegen support (this should produce a non-zero value, referring to the entry block of the function would also be quite reasonable).
llvm-svn: 85678
show more ...
|
#
5956dc87 |
| 28-Oct-2009 |
Chris Lattner <sabre@nondot.org> |
add bitcode reader support for blockaddress. We can now fully round trip blockaddress through .ll and .bc files, so add a testcase.
There are still a bunch of places in the optimizer and other plac
add bitcode reader support for blockaddress. We can now fully round trip blockaddress through .ll and .bc files, so add a testcase.
There are still a bunch of places in the optimizer and other places that need to be updated to work with these constructs, but at least the basics are in now.
llvm-svn: 85377
show more ...
|
#
d04cb6d0 |
| 28-Oct-2009 |
Chris Lattner <sabre@nondot.org> |
rename indbr -> indirectbr to appease the residents of #llvm.
llvm-svn: 85351
|
#
3ed871fe |
| 27-Oct-2009 |
Chris Lattner <sabre@nondot.org> |
add enough support for indirect branch for the feature test to pass (assembler,asmprinter, bc reader+writer) and document it. Codegen currently aborts on it.
llvm-svn: 85274
|
#
3d913cda |
| 25-Oct-2009 |
Daniel Dunbar <daniel@zuster.org> |
Suppress -Asserts warning.
llvm-svn: 85078
|
#
e297149e |
| 24-Oct-2009 |
Victor Hernandez <vhernandez@apple.com> |
Auto-upgrade free instructions to calls to the builtin free function. Update all analysis passes and transforms to treat free calls just like FreeInst. Remove RaiseAllocations and all its tests since
Auto-upgrade free instructions to calls to the builtin free function. Update all analysis passes and transforms to treat free calls just like FreeInst. Remove RaiseAllocations and all its tests since FreeInst no longer needs to be raised.
llvm-svn: 84987
show more ...
|
Revision tags: llvmorg-2.6.0 |
|
#
1155fdf6 |
| 22-Oct-2009 |
Devang Patel <dpatel@apple.com> |
Hide MetadataContext implementation details.
llvm-svn: 84886
|
#
1cfb958b |
| 21-Oct-2009 |
Dale Johannesen <dalej@apple.com> |
Rename msasm to alignstack per review.
llvm-svn: 84795
|
#
be9e1791 |
| 21-Oct-2009 |
Victor Hernandez <vhernandez@apple.com> |
Make changes to rev 84292 as requested by Chris Lattner.
Most changes are cleanup, but there is 1 correctness fix: I fixed InstCombine so that the icmp is removed only if the malloc call is removed
Make changes to rev 84292 as requested by Chris Lattner.
Most changes are cleanup, but there is 1 correctness fix: I fixed InstCombine so that the icmp is removed only if the malloc call is removed (which requires explicit removal because the Worklist won't DCE any calls since they can have side-effects).
llvm-svn: 84772
show more ...
|
#
c7d6a832 |
| 17-Oct-2009 |
Victor Hernandez <vhernandez@apple.com> |
Autoupgrade malloc insts to malloc calls. Update testcases that rely on malloc insts being present.
Also prematurely remove MallocInst handling from IndMemRemoval and RaiseAllocations to help pass t
Autoupgrade malloc insts to malloc calls. Update testcases that rely on malloc insts being present.
Also prematurely remove MallocInst handling from IndMemRemoval and RaiseAllocations to help pass tests in this incremental step.
llvm-svn: 84292
show more ...
|
#
fd04c74b |
| 13-Oct-2009 |
Dale Johannesen <dalej@apple.com> |
Add an "msasm" flag to inline asm as suggested in PR 5125. A little ugliness is accepted to keep the binary file format compatible. No functional change yet.
llvm-svn: 84020
|
#
0b26c9e0 |
| 13-Oct-2009 |
Devang Patel <dpatel@apple.com> |
Remove unnecessary assert.
llvm-svn: 84004
|
#
fdd87907 |
| 05-Oct-2009 |
Chris Lattner <sabre@nondot.org> |
strength reduce a ton of type equality tests to check the typeid (Through the new predicates I added) instead of going through a context and doing a pointer comparison. Besides being cheaper, this a
strength reduce a ton of type equality tests to check the typeid (Through the new predicates I added) instead of going through a context and doing a pointer comparison. Besides being cheaper, this allows a smart compiler to turn the if sequence into a switch.
llvm-svn: 83297
show more ...
|
#
5bf7a49f |
| 29-Sep-2009 |
Devang Patel <dpatel@apple.com> |
Only one custom meadata of each kind can be attached with an instruction.
llvm-svn: 83105
|
#
2d85eef9 |
| 28-Sep-2009 |
Devang Patel <dpatel@apple.com> |
s/class Metadata/class MetadataContext/g
llvm-svn: 83019
|
#
b1a4477f |
| 28-Sep-2009 |
Devang Patel <dpatel@apple.com> |
Do not use global typedef for MDKindID.
llvm-svn: 83016
|
#
e6ff7662 |
| 25-Sep-2009 |
Victor Hernandez <vhernandez@apple.com> |
Revert 82694 "Auto-upgrade malloc instructions to malloc calls." because it causes regressions in the nightly tests.
llvm-svn: 82784
|
#
46cd4673 |
| 24-Sep-2009 |
Victor Hernandez <vhernandez@apple.com> |
Auto-upgrade malloc instructions to malloc calls.
Reviewed by Devang Patel.
llvm-svn: 82694
|
#
7d6781b0 |
| 20-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Tabs -> spaces, and remove trailing whitespace.
llvm-svn: 82355
|
#
af206b8c |
| 18-Sep-2009 |
Devang Patel <dpatel@apple.com> |
Write and read metadata attachments.
llvm-svn: 82259
|
#
1b84908f |
| 07-Sep-2009 |
Dan Gohman <gohman@apple.com> |
Reappy r80998, now that the GlobalOpt bug that it exposed on MiniSAT is fixed.
llvm-svn: 81172
|
#
0f5bbb58 |
| 06-Sep-2009 |
Duncan Sands <baldrick@free.fr> |
Public and private corrections, warned about by icc (#304). Patch by Erick Tryzelaar.
llvm-svn: 81107
|
#
10ea8bb8 |
| 06-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Revert "Include optional subclass flags, such as inbounds, nsw, etc., ...", this breaks MiniSAT on x86_64.
llvm-svn: 81098
|
#
0c2477c2 |
| 04-Sep-2009 |
Dan Gohman <gohman@apple.com> |
Include optional subclass flags, such as inbounds, nsw, etc., in the Constant uniquing tables. This allows distinct ConstantExpr objects with the same operation and different flags.
Even though a Co
Include optional subclass flags, such as inbounds, nsw, etc., in the 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
show more ...
|