[llvm] GlobalISel lane masks merging (PR #73337)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 07:15:18 PST 2023
================
@@ -415,19 +411,19 @@ FunctionPass *llvm::createSILowerI1CopiesPass() {
return new SILowerI1Copies();
}
-static unsigned createLaneMaskReg(MachineFunction &MF) {
- const GCNSubtarget &ST = MF.getSubtarget<GCNSubtarget>();
- MachineRegisterInfo &MRI = MF.getRegInfo();
- return MRI.createVirtualRegister(ST.isWave32() ? &AMDGPU::SReg_32RegClass
- : &AMDGPU::SReg_64RegClass);
+Register llvm::createLaneMaskReg(MachineRegisterInfo *MRI,
+ Register *LaneMaskRegAttrs) {
----------------
arsenm wrote:
A Register() used in just about anything will fail the verifier so that's fine
https://github.com/llvm/llvm-project/pull/73337
More information about the llvm-commits
mailing list