This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Copy correct flags to select
ClosedPublic

Authored by arsenm on May 19 2020, 6:37 AM.

Details

Summary

This was looking for a compare condition, and copying the compare
flags. I don't think this was ever correct outside of certain min/max
patterns which aren't checked, but this probably predates select
instructions having fast math flags.

Diff Detail

Event Timeline

arsenm created this revision.May 19 2020, 6:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2020, 6:37 AM
foad accepted this revision.May 19 2020, 8:21 AM

LGTM.

This revision is now accepted and ready to land.May 19 2020, 8:21 AM