[PATCH] D101685: Removed mayThrow from if-condition in predicateLoopExits of IndVarSimplify
Daniil Seredkin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 1 00:21:28 PDT 2021
vdsered created this revision.
vdsered added a reviewer: reames.
vdsered added a project: LLVM.
Herald added a subscriber: hiraditya.
vdsered requested review of this revision.
Herald added a subscriber: llvm-commits.
Instruction has mayHaveSideEffects method that returns true if mayThrow return true because this is called internally in the first method
Repository:
rG LLVM Github Monorepo
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
@@ -1671,7 +1671,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.342125.patch
Type: text/x-patch
Size: 480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210501/bf385780/attachment.bin>
More information about the llvm-commits
mailing list