Addresses are floats when a sampler is present and unsigned integers
when no sampler is present.
Therefore, only zext instructions, not sext instructions should match.
Also match integer constants that can be truncated.
Paths
| Differential D118043
[AMDGPU] Only match correct type for a16 ClosedPublic Authored by sebastian-ne on Jan 24 2022, 7:13 AM.
Details
Summary Addresses are floats when a sampler is present and unsigned integers Therefore, only zext instructions, not sext instructions should match. Also match integer constants that can be truncated.
Diff Detail
Event TimelineHerald added subscribers: kerbowa, hiraditya, t-tye and 6 others. · View Herald TranscriptJan 24 2022, 7:13 AM This revision is now accepted and ready to land.Jan 24 2022, 8:45 AM sebastian-ne marked 2 inline comments as done. Comment ActionsThanks for the review, I fixed the comments. This revision was landed with ongoing or failed builds.Jan 25 2022, 6:07 AM Closed by commit rG4ed7c6eec979: [AMDGPU] Only match correct type for a16 (authored by sebastian-ne). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 402882 llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-intrinsics.ll
|
s/half/i16/ ?