Browse Source

[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
Max Kazantsev 7 years ago
parent
commit
f3a4bc2905
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Transforms/Scalar/IndVarSimplify.cpp

+ 1 - 1
lib/Transforms/Scalar/IndVarSimplify.cpp

@@ -625,7 +625,7 @@ void IndVarSimplify::rewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) {
             unsigned Opc = UseInstr->getOpcode();
             NumUses++;
             if (L->contains(UseInstr)) {
-              if (Opc == Instruction::Call || Opc == Instruction::Ret)
+              if (Opc == Instruction::Call)
                 NumHardInternalUses++;
             } else {
               if (Opc == Instruction::PHI) {