diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index a6c1669c14d..946d85d7360 100644 --- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -272,7 +272,7 @@ bool LoopIdiomRecognize::runOnCountableLoop() { // Give up if the loop has instructions may throw. LoopSafetyInfo SafetyInfo; computeLoopSafetyInfo(&SafetyInfo, CurLoop); - if (!SafetyInfo.EarlyExits.empty()) + if (SafetyInfo.MayThrow) return MadeChange; // Scan all the blocks in the loop that are not in subloops. |