This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Missed sign/zero extend patterns for divergence-driven instruction selection
ClosedPublic

Authored by alex-t on Feb 8 2022, 4:35 PM.

Diff Detail

Event Timeline

alex-t created this revision.Feb 8 2022, 4:35 PM
alex-t requested review of this revision.Feb 8 2022, 4:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2022, 4:35 PM
Herald added a subscriber: wdng. · View Herald Transcript
foad added a comment.Feb 9 2022, 4:32 AM

Looks OK but I don't understand the V_MOV vs S_MOV thing.

llvm/lib/Target/AMDGPU/SIInstructions.td
1997

These comments don't make any sense for V_BFE so I removed them and you'll have to rebase (sorry).

2252

Why S_MOV here...

2258

... but V_MOV here?

alex-t updated this revision to Diff 407210.Feb 9 2022, 10:42 AM

Odd comments and copy-paste typo corrected

alex-t marked 2 inline comments as done.Feb 9 2022, 10:43 AM
alex-t added inline comments.
llvm/lib/Target/AMDGPU/SIInstructions.td
2258

Because of the stupid copy-paste :)

rampitec added inline comments.Feb 9 2022, 10:48 AM
llvm/test/CodeGen/AMDGPU/divergence-driven-sext-inreg.ll
2

File is executable.

foad accepted this revision.Feb 9 2022, 11:09 AM

Looks good to me once you've fixed the file mode.

This revision is now accepted and ready to land.Feb 9 2022, 11:09 AM
alex-t updated this revision to Diff 407534.Feb 10 2022, 7:44 AM
alex-t marked an inline comment as done.

Test file attributes corrected

alex-t updated this revision to Diff 407547.Feb 10 2022, 8:30 AM
alex-t marked an inline comment as done.

One more test attributes corrected

This revision was landed with ongoing or failed builds.Feb 10 2022, 8:33 AM
This revision was automatically updated to reflect the committed changes.