aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2018-10-16 08:31:05 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2018-10-16 08:31:05 +0000
commit9c90ec2fae508e08b0323db4d1a164cbf64c8bcc (patch)
treeca46501b390f90c3dd91c50704a0c69d873e9a1b /llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
parenta5949439ca6adbb3b19dbd599880ff5b239f964e (diff)
downloadllvm-9c90ec2fae508e08b0323db4d1a164cbf64c8bcc.zip
llvm-9c90ec2fae508e08b0323db4d1a164cbf64c8bcc.tar.gz
llvm-9c90ec2fae508e08b0323db4d1a164cbf64c8bcc.tar.bz2
[NFC] Make LoopSafetyInfo abstract to allow alternative implementations
llvm-svn: 344592
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 9a45551..4b37595 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -320,7 +320,7 @@ bool LoopIdiomRecognize::runOnCountableLoop() {
// The following transforms hoist stores/memsets into the loop pre-header.
// Give up if the loop has instructions may throw.
- LoopSafetyInfo SafetyInfo;
+ SimpleLoopSafetyInfo SafetyInfo;
SafetyInfo.computeLoopSafetyInfo(CurLoop);
if (SafetyInfo.anyBlockMayThrow())
return MadeChange;