Skip to content

Commit f3a4bc2

Browse files
author
Max Kazantsev
committed
[NFC] A loop can never contain Ret instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340808 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 4f69adc commit f3a4bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Transforms/Scalar/IndVarSimplify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ void IndVarSimplify::rewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) {
625625
unsigned Opc = UseInstr->getOpcode();
626626
NumUses++;
627627
if (L->contains(UseInstr)) {
628-
if (Opc == Instruction::Call || Opc == Instruction::Ret)
628+
if (Opc == Instruction::Call)
629629
NumHardInternalUses++;
630630
} else {
631631
if (Opc == Instruction::PHI) {

0 commit comments

Comments
 (0)