[PATCH] D70614: AMDGPU: Reuse carry out register during FI elimination
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 19:44:13 PST 2019
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp:1133
+ Register ConstOffsetReg;
+ if (RC == &AMDGPU::SReg_64RegClass)
+ ConstOffsetReg = getSubReg(MIB.getReg(1), AMDGPU::sub0);
----------------
It would be slightly safer to directly check wave32 or not than relying on getting the physreg class and directly checking it. Sometimes the exact subclass changes
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70614/new/
https://reviews.llvm.org/D70614
More information about the llvm-commits
mailing list