forked from OSchip/llvm-project
[TargetFolder] Use DL-aware folding for icmp
The Fold() call was accidentally dropped in
138fcc5f76
, though it doesn't seem
to make a difference in practice (no test changes).
This commit is contained in:
parent
6d6983ced9
commit
6f9d990a6e
|
@ -103,7 +103,7 @@ public:
|
|||
auto *LC = dyn_cast<Constant>(LHS);
|
||||
auto *RC = dyn_cast<Constant>(RHS);
|
||||
if (LC && RC)
|
||||
return ConstantExpr::getCompare(P, LC, RC);
|
||||
return Fold(ConstantExpr::getCompare(P, LC, RC));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue