Skip to content

Commit 7b2af0e

Browse files
committed
update tests and pass name in debug
1 parent e93205a commit 7b2af0e

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

llvm/include/llvm/CodeGen/RegisterUsageInfo.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ class PhysicalRegisterUsageInfo {
5151

5252
void print(raw_ostream &OS, const Module *M = nullptr) const;
5353

54-
bool invalidate(Module &M, const PreservedAnalyses &PA,
55-
ModuleAnalysisManager::Invalidator &Inv);
56-
5754
private:
5855
/// A Dense map from Function * to RegMask.
5956
/// In RegMask 0 means register used (clobbered) by function.

llvm/lib/CodeGen/RegUsageInfoCollector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ bool RegUsageInfoCollector::run(MachineFunction &MF) {
126126
const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
127127
const LLVMTargetMachine &TM = MF.getTarget();
128128

129-
LLVM_DEBUG(dbgs() << " -------------------- Reg Usage Info Collector"
129+
LLVM_DEBUG(dbgs() << " -------------------- Register Usage Information Collector Pass"
130130
<< " -------------------- \nFunction Name : "
131131
<< MF.getName() << '\n');
132132

llvm/lib/CodeGen/RegisterUsageInfo.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@ void PhysicalRegisterUsageInfo::print(raw_ostream &OS, const Module *M) const {
100100
}
101101
}
102102

103-
bool PhysicalRegisterUsageInfo::invalidate(
104-
Module &M, const PreservedAnalyses &PA,
105-
ModuleAnalysisManager::Invalidator &) {
106-
auto PAC = PA.getChecker<PhysicalRegisterUsageInfoAnalysis>();
107-
return !PAC.preservedWhenStateless();
108-
}
109-
110103
AnalysisKey PhysicalRegisterUsageInfoAnalysis::Key;
111104
PhysicalRegisterUsageInfo
112105
PhysicalRegisterUsageInfoAnalysis::run(Module &M, ModuleAnalysisManager &) {

llvm/test/CodeGen/X86/ipra-inline-asm.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
; RUN: llc -enable-ipra -print-regusage -o /dev/null 2>&1 < %s | FileCheck %s
22

3+
; RUN: llc --stop-after=irtranslator -o - %s \
4+
; RUN: | llc -x=mir -enable-ipra -passes="module(require<reg-usage-info>,function(machine-function(reg-usage-collector)),print<regusage>)" -o /dev/null 2>&1 \
5+
; RUN: | FileCheck %s
6+
37
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
48
target triple = "x86_64-apple-macosx10.12.0"
59

llvm/test/CodeGen/X86/ipra-reg-usage.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
; RUN: llc -enable-ipra -print-regusage -o /dev/null 2>&1 < %s | FileCheck %s
22

3+
; RUN: llc -stop-after=irtranslator -o - %s \
4+
; RUN: | llc -x=mir -enable-ipra -passes="module(require<reg-usage-info>,function(machine-function(reg-usage-collector)),print<regusage>)" -o /dev/null 2>&1 \
5+
; RUN: | FileCheck %s
6+
37
target triple = "x86_64-unknown-unknown"
48
declare void @bar1()
59
define preserve_allcc void @foo()#0 {

0 commit comments

Comments
 (0)