[llvm] r340808 - [NFC] A loop can never contain Ret instruction
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 28 02:26:28 PDT 2018
Author: mkazantsev
Date: Tue Aug 28 02:26:28 2018
New Revision: 340808
URL: http://llvm.org/viewvc/llvm-project?rev=340808&view=rev
Log:
[NFC] A loop can never contain Ret instruction
Modified:
llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=340808&r1=340807&r2=340808&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Tue Aug 28 02:26:28 2018
@@ -625,7 +625,7 @@ void IndVarSimplify::rewriteLoopExitValu
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) {
More information about the llvm-commits
mailing list