mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix an infinite loop building the CFE
llvm-svn: 30465
This commit is contained in:
parent
6392e78191
commit
1efde528d6
@ -3988,7 +3988,8 @@ Instruction *InstCombiner::visitSetCondInst(SetCondInst &I) {
|
||||
// preferable because it allows the C<<Y expression to be hoisted out
|
||||
// of a loop if Y is invariant and X is not.
|
||||
if (Shift && Shift->hasOneUse() && CI->isNullValue() &&
|
||||
I.isEquality() && !Shift->isArithmeticShift()) {
|
||||
I.isEquality() && !Shift->isArithmeticShift() &&
|
||||
isa<Instruction>(Shift->getOperand(0))) {
|
||||
// Compute C << Y.
|
||||
Value *NS;
|
||||
if (Shift->getOpcode() == Instruction::Shr) {
|
||||
|
Loading…
Reference in New Issue
Block a user