llvm-project
8a3b7152 - [X86] Fold FP UNORD/ORD compare against known-non-NaN to self-compare (#206943)

Commit
13 days ago
[X86] Fold FP UNORD/ORD compare against known-non-NaN to self-compare (#206943) Replace a known-non-NaN operand of an UNORD/ORD FP compare with the other operand, so we emit `cmpp a, a` instead of materializing the constant with `vxorpd`. Matches GCC. Added combine-fcmp-uno-self.ll which covers the folding and a negative case. Fixes #202756
Author
Parents
Loading