[llvm] AMDGPU: Fold copy of scalar add of frame index (PR #115058)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 12:54:00 PST 2024
================
@@ -78,6 +78,12 @@ class SIFoldOperandsImpl {
bool frameIndexMayFold(const MachineInstr &UseMI, int OpNo,
const MachineOperand &OpToFold) const;
+ /// Fold %vgpr = COPY (S_ADD_I32 x, frameindex)
+ ///
+ /// => %vgpr = V_ADD_U32 x, frameindex
----------------
rampitec wrote:
What prevents it from constant bus violation?
https://github.com/llvm/llvm-project/pull/115058
More information about the llvm-commits
mailing list