mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Fix bug: 2004-10-08-SelectSetCCFold.llx. Normally this is hidden by the
instcombine xform, which is why we didn't notice it before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d4bcae9031
commit
d04cd55796
@ -847,7 +847,8 @@ static SetCondInst *canFoldSetCCIntoBranchOrSelect(Value *V) {
|
||||
if ((isa<BranchInst>(User) || isa<SelectInst>(User)) &&
|
||||
(getClassB(SCI->getOperand(0)->getType()) != cLong ||
|
||||
SCI->getOpcode() == Instruction::SetEQ ||
|
||||
SCI->getOpcode() == Instruction::SetNE))
|
||||
SCI->getOpcode() == Instruction::SetNE) &&
|
||||
User->getOperand(0) == V)
|
||||
return SCI;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user