From 0c4b84e2df541b42238b1e15d2abb5ee4b262402 Mon Sep 17 00:00:00 2001 From: Max Kazantsev Date: Tue, 28 Aug 2018 09:26:28 +0000 Subject: [PATCH] [NFC] A loop can never contain Ret instruction llvm-svn: 340808 --- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 8656e88..e2c2ff2 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/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) { -- 2.7.4