[llvm] AMDGPU: Extract mergeIncomingLaneMasks from SILowerI1Copies lowerPhis (PR #216995)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 09:02:37 PDT 2026
================
@@ -449,9 +449,92 @@ AMDGPU::PhiLoweringHelper::PhiLoweringHelper(MachineFunction *MF,
TII = ST->getInstrInfo();
}
-bool AMDGPU::PhiLoweringHelper::lowerPhis() {
+void AMDGPU::PhiLoweringHelper::mergeIncomingLaneMasks(
+ Register DstReg, MachineBasicBlock &MBB,
+ SmallVectorImpl<Incoming> &Incomings, MachineIDFSSAUpdater &SSAUpdater) {
LoopFinder LF(*DT, *PDT);
PhiIncomingAnalysis PIA(*PDT, TII);
----------------
arsenm wrote:
I assumed these were cheap because of the intiailize in the loop, but I suppose that PrevMBB stuff was to only call this once
https://github.com/llvm/llvm-project/pull/216995
More information about the llvm-commits
mailing list