diff options
| author | Bill Wendling <isanbard@gmail.com> | 2011-08-24 21:06:46 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2011-08-24 21:06:46 +0000 |
| commit | 86c5cbe6132d3c80dadeb66b16c3d4130ab47349 (patch) | |
| tree | 24b201520db2dbbf1e0d79f03e14f953d1b020a3 /llvm/lib/Transforms | |
| parent | be460898bbc8d95c954d468678862b3172665808 (diff) | |
| download | bcm5719-llvm-86c5cbe6132d3c80dadeb66b16c3d4130ab47349.tar.gz bcm5719-llvm-86c5cbe6132d3c80dadeb66b16c3d4130ab47349.zip | |
Skip the landingpad instruction when determining the insertion point.
llvm-svn: 138481
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index e79071535bd..ac4e741a6e9 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -3423,6 +3423,9 @@ LSRInstance::AdjustInsertPositionForExpand(BasicBlock::iterator IP, // Don't insert instructions before PHI nodes. while (isa<PHINode>(IP)) ++IP; + // Ignore landingpad instructions. + while (isa<LandingPadInst>(IP)) ++IP; + // Ignore debug intrinsics. while (isa<DbgInfoIntrinsic>(IP)) ++IP; |

