This is an archive of the discontinued LLVM Phabricator instance.

[PatternMatch, InstSimplify] allow undef elements when matching vector -0.0
ClosedPublic

Authored by spatel on Feb 26 2018, 3:41 PM.

Details

Summary

Our undef simplification with FP binops - including constant folding - is incomplete and doesn't match the DAG.
But I think it's ok to add the FP equivalent of D42818 and use it for the few cases in InstSimplify of -0.0 folds (that's the only current use of m_NegZero() that I see).

Diff Detail

Repository
rL LLVM