mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
[IndVarSimplify][NFC] Removed mayThrow from if-condition in predicateLoopExits of IndVarSimplify
Instruction has mayHaveSideEffects method that returns true if mayThrow return true because this is called internally in the first method. As such, the call being removed is redundant. Patch By: vdsered (Daniil Seredkin) Differential Revision: https://reviews.llvm.org/D101685
This commit is contained in:
parent
d9c83d44b9
commit
a2c2bf3570
@ -1668,7 +1668,7 @@ bool IndVarSimplify::predicateLoopExits(Loop *L, SCEVExpander &Rewriter) {
|
||||
for (BasicBlock *BB : L->blocks())
|
||||
for (auto &I : *BB)
|
||||
// TODO:isGuaranteedToTransfer
|
||||
if (I.mayHaveSideEffects() || I.mayThrow())
|
||||
if (I.mayHaveSideEffects())
|
||||
return false;
|
||||
|
||||
bool Changed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user