diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-16 04:52:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-16 04:52:55 +0000 |
commit | be33e8d58dc3689224312d48ebcc152dd9fe7df1 (patch) | |
tree | 2255563feecd7f3a8b2839dd2125e23f8b851e2d /llvm/lib/Transforms/InstCombine | |
parent | 2263c109461aa5ba60e35257535e8abe3c3bd32a (diff) | |
download | bcm5719-llvm-be33e8d58dc3689224312d48ebcc152dd9fe7df1.tar.gz bcm5719-llvm-be33e8d58dc3689224312d48ebcc152dd9fe7df1.zip |
A few places where we want to skip the landingpad instruction for insertion.
llvm-svn: 137712
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp index e4012ef759b..b987340e13f 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp @@ -601,6 +601,7 @@ bool InstCombiner::SimplifyStoreAtEndOfBlock(StoreInst &SI) { // Advance to a place where it is safe to insert the new store and // insert it. BBI = DestBB->getFirstNonPHI(); + if (isa<LandingPadInst>(BBI)) ++BBI; StoreInst *NewSI = new StoreInst(MergedVal, SI.getOperand(1), SI.isVolatile(), SI.getAlignment(), |