Commit Graph

1 Commits

Author SHA1 Message Date
Erik Eckstein
fa85745f2d ConstantFolding: fix wrong constant folding for float-infinity compares
Only if the other operand of a comparison with Inf is a literal we can be sure that it's not Inf or NaN.

Fixes a miscompile
rdar://122605966
2024-02-14 16:09:23 +01:00