mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Fix 'fcmp one' constant folding. Noticed by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b8787f3403
commit
bb25e2c91b
@ -1958,7 +1958,7 @@ Constant *llvm::ConstantFoldCompareInstruction(unsigned short pred,
|
||||
else if (pred == FCmpInst::FCMP_UGT || pred == FCmpInst::FCMP_OGT)
|
||||
Result = 1;
|
||||
break;
|
||||
case ICmpInst::ICMP_NE: // We know that C1 != C2
|
||||
case FCmpInst::FCMP_ONE: // We know that C1 != C2
|
||||
// We can only partially decide this relation.
|
||||
if (pred == FCmpInst::FCMP_OEQ || pred == FCmpInst::FCMP_UEQ)
|
||||
Result = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user