mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 14:16:12 +00:00
[NFC] A loop can never contain Ret instruction
llvm-svn: 340808
This commit is contained in:
parent
e2f48dce8f
commit
b4a8cdeb02
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user