[llvm] b6db6f5 - [CSSPGO] Exclude pseudo probe from slotindex verification.

Hongtao Yu via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 21 09:17:49 PDT 2021


Author: Hongtao Yu
Date: 2021-04-21T09:17:12-07:00
New Revision: b6db6f5530d2df8bc3a1acf6d68b2bfa2bd053b4

URL: https://github.com/llvm/llvm-project/commit/b6db6f5530d2df8bc3a1acf6d68b2bfa2bd053b4
DIFF: https://github.com/llvm/llvm-project/commit/b6db6f5530d2df8bc3a1acf6d68b2bfa2bd053b4.diff

LOG: [CSSPGO] Exclude pseudo probe from slotindex verification.

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineVerifier.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 0a92056df03e..e62b2195d915 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()) {


        


More information about the llvm-commits mailing list