aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorHongtao Yu <hoy@fb.com>2021-04-21 09:14:50 -0700
committerHongtao Yu <hoy@fb.com>2021-04-21 09:17:12 -0700
commitb6db6f5530d2df8bc3a1acf6d68b2bfa2bd053b4 (patch)
tree84c3da9c2d3b446bdb94cf6232488aaaa89d5cd3 /llvm/lib/CodeGen/MachineVerifier.cpp
parente6eaacbf0bd0c76a4fbfbd30c6159f57a89b3480 (diff)
downloadllvm-b6db6f5530d2df8bc3a1acf6d68b2bfa2bd053b4.zip
llvm-b6db6f5530d2df8bc3a1acf6d68b2bfa2bd053b4.tar.gz
llvm-b6db6f5530d2df8bc3a1acf6d68b2bfa2bd053b4.tar.bz2
[CSSPGO] Exclude pseudo probe from slotindex verification.
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 0a92056..e62b219 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -1651,7 +1651,7 @@ void MachineVerifier::visitMachineInstrBefore(const MachineInstr *MI) {
// Other instructions must have one, unless they are inside a bundle.
if (LiveInts) {
bool mapped = !LiveInts->isNotInMIMap(*MI);
- if (MI->isDebugInstr()) {
+ if (MI->isDebugOrPseudoInstr()) {
if (mapped)
report("Debug instruction has a slot index", MI);
} else if (MI->isInsideBundle()) {