This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Enable divergence predicates for negative inline constant subtraction
ClosedPublic

Authored by alex-t on Mar 10 2022, 2:06 AM.

Details

Summary

We have a pattern that undo sub x, c -> add x, -c canonicalization since c is more likely
an inline immediate than -c. This patch enables it to select scalar or vector subtracion by the input node divergence.

Diff Detail

Event Timeline

alex-t created this revision.Mar 10 2022, 2:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2022, 2:06 AM
alex-t requested review of this revision.Mar 10 2022, 2:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2022, 2:06 AM
Herald added a subscriber: wdng. · View Herald Transcript
foad accepted this revision.Mar 10 2022, 2:18 AM
This revision is now accepted and ready to land.Mar 10 2022, 2:18 AM
This revision was landed with ongoing or failed builds.Mar 10 2022, 4:03 AM
This revision was automatically updated to reflect the committed changes.