This is an archive of the discontinued LLVM Phabricator instance.

Fix fcmp + fabs instcombines when using the intrinsic
ClosedPublic

Authored by arsenm on Nov 19 2014, 10:52 AM.

Details

Reviewers
arsenm
Summary

This was only handling the libcall. This is another example
of why only the intrinsic should ever be used when it exists.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 16392.Nov 19 2014, 10:52 AM
arsenm retitled this revision from to Fix fcmp + fabs instcombines when using the intrinsic .
arsenm updated this object.
arsenm edited the test plan for this revision. (Show Details)
arsenm added a subscriber: Unknown Object (MLST).

LGTM.

One comment: I also wonder if other comparisons could be folded. I think for example about FCMP_UGT/FCMP_UGE which are always true?

arsenm accepted this revision.Jan 8 2015, 12:11 PM
arsenm added a reviewer: arsenm.

r225465

This revision is now accepted and ready to land.Jan 8 2015, 12:11 PM
arsenm closed this revision.Jan 8 2015, 12:12 PM