- Mar 04, 2007
-
-
Reid Spencer authored
llvm-svn: 34903
-
Chris Lattner authored
llvm-svn: 34902
-
Chris Lattner authored
up simplifycfg by 20% llvm-svn: 34901
-
Chris Lattner authored
llvm-svn: 34900
-
Chris Lattner authored
llvm-svn: 34899
-
Chris Lattner authored
would scan the entire loop body, then scan all users of instructions in the loop, looking for users outside the loop. Now, since we know that the loop is in LCSSA form, we know that any users outside the loop will be LCSSA phi nodes. Just scan them. This speeds up indvars significantly. llvm-svn: 34898
-
Reid Spencer authored
llvm-svn: 34897
-
Chris Lattner authored
This makes -indvars require and use LCSSA, updating it as appropriate. llvm-svn: 34896
-
Chris Lattner authored
llvm-svn: 34895
-
Reid Spencer authored
when building the documentation for the web site. llvm-svn: 34894
-
Chris Lattner authored
llvm-svn: 34893
-
Chris Lattner authored
llvm-svn: 34892
-
- Mar 03, 2007
-
-
Chris Lattner authored
llvm-svn: 34891
-
Chris Lattner authored
This "fixes" PR1238. llvm-svn: 34890
-
Reid Spencer authored
llvm-svn: 34889
-
Reid Spencer authored
reading bytecode. 2. The interpreter can delete the ModuleProvider and replace it with another so don't depend on it being around after the EE is created. 3. Don't just run llvm_shutdown on exit but actually delete the EE as well. This cleans up a vast amount of memory (but not all) that EE retained through exit. llvm-svn: 34888
-
Reid Spencer authored
llvm-svn: 34887
-
Reid Spencer authored
ExecutionEngine report errors on creation (like bytecode stuff) and also help to get rid of exception handling. llvm-svn: 34886
-
Reid Spencer authored
width. This helps CBE work with non-standard integer bit widths. llvm-svn: 34885
-
Reid Spencer authored
have been removed and dealt with. The interpreter should now be able to execute any LLVM program using any bit width. llvm-svn: 34884
-
Reid Spencer authored
destination value of LoadValueFromMemory. llvm-svn: 34883
-
Reid Spencer authored
in as a parameter instead of returned. llvm-svn: 34882
-
Reid Spencer authored
llvm-svn: 34881
-
Reid Spencer authored
llvm-svn: 34880
-
Reid Spencer authored
llvm-svn: 34879
-
Evan Cheng authored
llvm-svn: 34878
-
Reid Spencer authored
Move the getConstantExpr function towards the end of the file so we don't need a dozen forward declarations. llvm-svn: 34877
-
Reid Spencer authored
ensure they are cleaned up when the stack frame exits. 2. Move a function to the Execution.cpp file where it belongs. llvm-svn: 34876
-
Nate Begeman authored
llvm-svn: 34875
-
Reid Spencer authored
llvm-svn: 34874
-
Reid Spencer authored
not reading beyond the end of the buffer returned. llvm-svn: 34873
-
Reid Spencer authored
the Interpreter. llvm-svn: 34872
-
Nick Lewycky authored
llvm-svn: 34871
-
Chris Lattner authored
the order that instcombine processed instructions in the testcase. The end result is that instcombine finished with: define i16 @test1(i16 %a) { %tmp = zext i16 %a to i32 ; <i32> [#uses=2] %tmp21 = lshr i32 %tmp, 8 ; <i32> [#uses=1] %tmp5 = shl i32 %tmp, 8 ; <i32> [#uses=1] %tmp.upgrd.32 = or i32 %tmp21, %tmp5 ; <i32> [#uses=1] %tmp.upgrd.3 = trunc i32 %tmp.upgrd.32 to i16 ; <i16> [#uses=1] ret i16 %tmp.upgrd.3 } which can't get matched as a bswap. This patch makes instcombine more sophisticated about removing truncating casts, allowing it to turn this into: define i16 @test2(i16 %a) { %tmp211 = lshr i16 %a, 8 %tmp52 = shl i16 %a, 8 %tmp.upgrd.323 = or i16 %tmp211, %tmp52 ret i16 %tmp.upgrd.323 } which then matches as bswap. This fixes bswap.ll and implements InstCombine/cast2.ll:test[12]. This also implements cast elimination of add/sub. llvm-svn: 34870
-
Chris Lattner authored
llvm-svn: 34869
-
Nick Lewycky authored
llvm-svn: 34868
-
Chris Lattner authored
llvm-svn: 34867
-
Evan Cheng authored
entry (0x8b056f0, LLVM BB @0x8b01b30, ID#0): Live Ins: %r0 %r1 %r2 %r3 %reg1032 = tMOVrr %r3<kill> %reg1033 = tMOVri8 1 %reg1034 = tMOVri8 0 tCMPi8 %reg1029<kill>, 0 tBcc mbb<entry,0x8b06a10>, 0 Successors according to CFG: 0x8b06980 0x8b06a10 entry (0x8b06980, LLVM BB @0x8b01b30, ID#12): Predecessors according to CFG: 0x8b056f0 %reg1036 = tMOVrr %reg1034<kill> Successors according to CFG: 0x8b06a10 entry (0x8b06a10, LLVM BB @0x8b01b30, ID#13): Predecessors according to CFG: 0x8b056f0 0x8b06980 %reg1024<dead> = tMOVrr %reg1030<kill> ... reg1030 and r1 have already been joined. When reg1024 and reg1030 are joined, r1 live range from function entry to the tMOVrr instruction are dead. Eliminate r1 from the livein set of the entry BB, not the BB where the copy is. llvm-svn: 34866
-
Chris Lattner authored
finish without combining something it is capable of. llvm-svn: 34865
-
Reid Spencer authored
llvm-svn: 34863
-