From 86c5cbe6132d3c80dadeb66b16c3d4130ab47349 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 24 Aug 2011 21:06:46 +0000 Subject: Skip the landingpad instruction when determining the insertion point. llvm-svn: 138481 --- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Transforms') 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(IP)) ++IP; + // Ignore landingpad instructions. + while (isa(IP)) ++IP; + // Ignore debug intrinsics. while (isa(IP)) ++IP; -- cgit v1.2.3