[llvm] [AMDGPU] Fix mode register intersection across predecessors (PR #222244)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 02:56:27 PDT 2026
================
@@ -362,8 +362,9 @@ void SIModeRegister::processBlockPhase2(MachineBasicBlock &MBB,
bool RevisitRequired = false;
bool ExitSet = false;
unsigned ThisBlock = MBB.getNumber();
- if (MBB.pred_empty()) {
- // There are no predecessors, so use the default starting status.
+ if (MBB.pred_empty() || MBB.isEntryBlock()) {
----------------
aobolensk wrote:
removed
https://github.com/llvm/llvm-project/pull/222244
More information about the llvm-commits
mailing list