[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:
Nikita Popov 2022-07-13 15:35:13 +02:00
parent 6d6983ced9
commit 6f9d990a6e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}