mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Fix 'fcmp one' constant folding. Noticed by inspection.
llvm-svn: 124557
This commit is contained in:
parent
001e12d8d5
commit
abfab6156c
@ -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…
x
Reference in New Issue
Block a user