[llvm] [AMDGPU][GlobalISel] Fix issue with copy_scc_vcc on gfx7 (PR #165355)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 30 15:09:27 PDT 2025
================
@@ -221,12 +221,22 @@ bool AMDGPUInstructionSelector::selectCOPY(MachineInstr &I) const {
bool AMDGPUInstructionSelector::selectCOPY_SCC_VCC(MachineInstr &I) const {
const DebugLoc &DL = I.getDebugLoc();
MachineBasicBlock *BB = I.getParent();
+ Register VCCReg = I.getOperand(1).getReg();
+ MachineInstr *Cmp;
+
+ if (STI.getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS) {
----------------
arsenm wrote:
Should be using ST.hasScalarCompareEq64()
https://github.com/llvm/llvm-project/pull/165355
More information about the llvm-commits
mailing list