This is an archive of the discontinued LLVM Phabricator instance.

R600/SI: Use source modifiers for f64 fabs / fneg
ClosedPublic

Authored by arsenm on Aug 1 2014, 7:33 PM.

Details

Reviewers
arsenm
Summary

f32 has a comment and patterns about the behavior with 0 and negate modifier which I'm unsure about. I think the source modifier should work if the source is 0, since the negate modifier is supposed to be applied before abs. Does this pattern need to be skipped for f64 too?

Diff Detail

Event Timeline

arsenm updated this revision to Diff 12138.Aug 1 2014, 7:33 PM
arsenm retitled this revision from to R600/SI: Use source modifiers for f64 fabs / fneg.
arsenm updated this object.
arsenm edited the test plan for this revision. (Show Details)
arsenm added a subscriber: Unknown Object (MLST).
arsenm accepted this revision.Aug 15 2014, 12:02 PM
arsenm added a reviewer: arsenm.
This revision is now accepted and ready to land.Aug 15 2014, 12:02 PM
arsenm closed this revision.Aug 15 2014, 12:02 PM