[PATCH] D101685: [IndVarSimplify][NFC] Removed mayThrow from if-condition in predicateLoopExits of IndVarSimplify
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 3 18:25:27 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG11326cbcdb97: [IndVarSimplify][NFC] Removed mayThrow from if-condition in predicateLoopExits… (authored by reames).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101685/new/
https://reviews.llvm.org/D101685
Files:
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -1668,7 +1668,7 @@
for (BasicBlock *BB : L->blocks())
for (auto &I : *BB)
// TODO:isGuaranteedToTransfer
- if (I.mayHaveSideEffects() || I.mayThrow())
+ if (I.mayHaveSideEffects())
return false;
bool Changed = false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101685.342618.patch
Type: text/x-patch
Size: 480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210504/24ba2f24/attachment.bin>
More information about the llvm-commits
mailing list