This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fold immediates in the optimizeCompareInstr
ClosedPublic

Authored by rampitec on Sep 2 2021, 1:17 PM.

Details

Summary

Peephole works before the first SIFoldOperands so most of
the immediates are in registers.

Diff Detail

Event Timeline

rampitec created this revision.Sep 2 2021, 1:17 PM
rampitec requested review of this revision.Sep 2 2021, 1:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2021, 1:17 PM
Herald added a subscriber: wdng. · View Herald Transcript

Besides return value of getFoldableImm() was inconsistent.

rampitec updated this revision to Diff 370433.Sep 2 2021, 3:44 PM

Fix tidy warnings.

arsenm accepted this revision.Sep 2 2021, 4:58 PM
This revision is now accepted and ready to land.Sep 2 2021, 4:58 PM
This revision was landed with ongoing or failed builds.Sep 2 2021, 5:23 PM
This revision was automatically updated to reflect the committed changes.