Before the patch it was possible to trigger a constant bus
violation when folding immediates into a shrunk instruction.
The patch adds a check to enforce the legality of the new operand.
Paths
| Differential D95527
[AMDGPU] Avoid an illegal operand in si-shrink-instructions ClosedPublic Authored by piotr on Jan 27 2021, 7:18 AM.
Details Summary Before the patch it was possible to trigger a constant bus The patch adds a check to enforce the legality of the new operand.
Diff Detail
Event TimelineHerald added subscribers: kerbowa, hiraditya, t-tye and 7 others. · View Herald TranscriptJan 27 2021, 7:18 AM This revision is now accepted and ready to land.Jan 27 2021, 8:16 AM This revision was landed with ongoing or failed builds.Jan 27 2021, 11:50 PM Closed by commit rGfc8e7411218c: [AMDGPU] Avoid an illegal operand in si-shrink-instructions (authored by piotr). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 319772 llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
llvm/test/CodeGen/AMDGPU/shrink-instructions-illegal-fold.mir
|