mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
Fix an infinite loop building the CFE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e14bca4fd
commit
6d7ca92bbf
@ -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