Skip to content

Commit 37f0eef

Browse files
committed
Propagate renaming from down the stack
1 parent 23c24e0 commit 37f0eef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/CodeGen/RegUsageInfoPropagate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ RegUsageInfoPropagationPass::run(MachineFunction &MF,
120120
MachineFunctionAnalysisManager &MFAM) {
121121
Module &MFA = *MF.getFunction().getParent();
122122
auto *PRUI = MFAM.getResult<ModuleAnalysisManagerMachineFunctionProxy>(MF)
123-
.getCachedResult<PhysicalRegisterUsageInfoAnalysis>(MFA);
124-
assert(PRUI && "PhysicalRegisterUsageInfoAnalysis not available");
123+
.getCachedResult<PhysicalRegisterUsageAnalysis>(MFA);
124+
assert(PRUI && "PhysicalRegisterUsageAnalysis not available");
125125
RegUsageInfoPropagation(PRUI).run(MF);
126126
return PreservedAnalyses::all();
127127
}

llvm/test/CodeGen/AArch64/preserve.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: llc -enable-ipra -print-regusage -o /dev/null 2>&1 < %s | FileCheck %s
33

44
; RUN: llc -stop-after=irtranslator -o - %s \
5-
; RUN: | llc -x=mir -enable-ipra -passes="require<reg-usage-info>,function(machine-function(reg-usage-propagation,reg-usage-collector)),print<regusage>" -o /dev/null 2>&1 \
5+
; RUN: | llc -x=mir -enable-ipra -passes="require<reg-usage>,function(machine-function(reg-usage-propagation,reg-usage-collector)),print<reg-usage>" -o /dev/null 2>&1 \
66
; RUN: | FileCheck %s
77

88
target triple = "aarch64-unknown-unknown"

0 commit comments

Comments
 (0)