This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Return better Changed status from SIFoldOperands
ClosedPublic

Authored by foad on Feb 17 2022, 1:40 AM.

Diff Detail

Event Timeline

foad created this revision.Feb 17 2022, 1:40 AM
foad requested review of this revision.Feb 17 2022, 1:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2022, 1:40 AM
piotr added inline comments.Feb 18 2022, 2:12 AM
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
1241

Looks tryConstantFoldOp may make changes?

foad updated this revision to Diff 409883.Feb 18 2022, 2:23 AM

Account for tryConstantFoldOp making changes.

foad added inline comments.Feb 18 2022, 2:25 AM
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
1241

Wow, good catch! Should be fixed now. But I think we need some better testing for this kind of problem. I will see if D80916 can be extended to do hashing on MachineIR as well as IR.

piotr accepted this revision.Feb 18 2022, 2:30 AM

LGTM

This revision is now accepted and ready to land.Feb 18 2022, 2:30 AM
This revision was landed with ongoing or failed builds.Feb 18 2022, 2:36 AM
This revision was automatically updated to reflect the committed changes.