[llvm] [AMDGPU][GlobalISel] Align `selectVOP3PMadMixModsImpl` with the `SelectionDAG` counterpart (PR #110168)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 01:56:18 PDT 2024
================
@@ -5312,26 +5312,20 @@ AMDGPUInstructionSelector::selectVOP3PMadMixModsImpl(MachineOperand &Root,
// Only change Src if src modifier could be gained. In such cases new Src
// could be sgpr but this does not violate constant bus restriction for
// instruction that is being selected.
- // Note: Src is not changed when there is only a simple sgpr to vgpr copy
- // since this could violate constant bus restriction.
- Register PeekSrc = stripCopy(Src, *MRI);
+ Src = stripBitCast(Src, *MRI);
----------------
arsenm wrote:
I think we need new tests where a bitcast is stripped
https://github.com/llvm/llvm-project/pull/110168
More information about the llvm-commits
mailing list