- Aug 19, 2011
-
-
Bill Wendling authored
llvm-svn: 138102
-
Benjamin Kramer authored
llvm-svn: 138025
-
Benjamin Kramer authored
C API functions must be able to see their extern "C" definitions, or it will be impossible to call them from C. llvm-svn: 138022
-
Dan Gohman authored
known-incremented level, because the two concepts can be used to prove the saftey of a retain+release removal in different ways. llvm-svn: 138016
-
Bill Wendling authored
We have to be careful when splitting the landing pad block, because the landingpad instruction is required to remain as the first non-PHI of an invoke's unwind edge. To retain this, we split the block into two blocks, moving the predecessors within the loop to one block and the remaining predecessors to the other. The landingpad instruction is cloned into the new blocks. llvm-svn: 138015
-
Bill Wendling authored
SplitLandingPadPredecessors is similar to SplitBlockPredecessors in that it splits the current block and attaches a set of predecessors to the new basic block. However, it differs from SplitBlockPredecessors in that it's specifically designed to handle landing pad blocks. Two new basic blocks are created: one that is has the vector of predecessors as its predecessors and one that has the remaining predecessors as its predecessors. Those two new blocks then receive a cloned copy of the landingpad instruction from the original block. The landingpad instructions are joined in a PHI, etc. Like SplitBlockPredecessors, it updates the LLVM IR, AliasAnalysis, DominatorTree, DominanceFrontier, LoopInfo, and LCCSA analyses. llvm-svn: 138014
-
Bill Wendling authored
llvm-svn: 138008
-
- Aug 18, 2011
-
-
Dan Gohman authored
llvm-svn: 137985
-
Bill Wendling authored
aren't from an indirect branch need to be dominated by the loop header. llvm-svn: 137981
-
Bill Wendling authored
function. llvm-svn: 137979
-
Bill Wendling authored
llvm-svn: 137978
-
Nick Lewycky authored
of debug info. llvm-svn: 137972
-
Bill Wendling authored
llvm-svn: 137959
-
Bill Wendling authored
functionality change. llvm-svn: 137926
-
Devang Patel authored
Dramatically speedup codegen prepare by a) avoiding use of dominator tree and b) doing a separate pass over dbg.value instructions. llvm-svn: 137908
-
Devang Patel authored
llvm-svn: 137890
-
Eli Friedman authored
llvm-svn: 137888
-
- Aug 17, 2011
-
-
Bill Wendling authored
PRE needs the landing pads to have their critical edges split. Doing this for a landing pad is non-trivial. Abandon the attempt to perform PRE when we come across a landing pad. (Reviewed by Owen!) llvm-svn: 137876
-
Bill Wendling authored
llvm-svn: 137872
-
Bill Wendling authored
One way to exit the loop is through an unwind edge. However, that may involve splitting the critical edge of the landing pad, which is non-trivial. Prevent the transformation from rewriting the landing pad exit loop block. llvm-svn: 137871
-
Bill Wendling authored
so requires more care than this generic algorithm should handle. llvm-svn: 137866
-
Bill Wendling authored
instruction should be marked as potentially reading and/or writing memory. llvm-svn: 137863
-
Eli Friedman authored
Silly mistake from r137777; restore significant isStructTy() checks. While here, be a bit more defensive with unknown instructions. Fixes PR10687. llvm-svn: 137836
-
Eli Friedman authored
making random bad assumptions about instructions which are not explicitly listed. Includes fix for rdar://9956541, a version of "undef ^ undef should return 0 because it's easier than arguing with users". llvm-svn: 137777
-
- Aug 16, 2011
-
-
Eli Friedman authored
Minor bug in SCCP found by inspection. (I don't think it's possible to hit this with a normal pass pipeline, but fixing for completeness.) llvm-svn: 137755
-
Bill Wendling authored
check for a LandingPadInst. llvm-svn: 137745
-
Bill Wendling authored
llvm-svn: 137743
-
David Chisnall authored
Add a mechanism for optimisation plugins to register passes that all front ends can use without needing to be aware of the plugin (or the plugin be aware of the front end). Before 3.0, I'd like to add a mechanism for automatically loading a set of plugins from a config file. API suggestions welcome... llvm-svn: 137717
-
Bill Wendling authored
llvm-svn: 137712
-
Eli Friedman authored
llvm-svn: 137702
-
Eli Friedman authored
to be wrong (or at least somewhat suspect). Leave a FIXME for Bill. llvm-svn: 137694
-
Eli Friedman authored
llvm-svn: 137693
-
Eli Friedman authored
This commit includes a mention of the landingpad instruction, but it's not changing the behavior around it. I think the current behavior is correct, though. Bill, can you double-check that? llvm-svn: 137691
-
Eli Friedman authored
llvm-svn: 137690
-
Bill Wendling authored
llvm-svn: 137679
-
Bill Wendling authored
llvm-svn: 137672
-
Eli Friedman authored
llvm-svn: 137667
-
Eli Friedman authored
llvm-svn: 137664
-
- Aug 15, 2011
-
-
Bill Wendling authored
write to memory.) Marking it as such makes some checks for immobility go away. llvm-svn: 137655
-
Eli Friedman authored
llvm-svn: 137654
-