[llvm] 7821964 - [Debugify] Add precommit test for D138417
    Anton Sidorenko via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Nov 24 01:19:59 PST 2022
    
    
  
Author: Anton Sidorenko
Date: 2022-11-24T12:19:39+03:00
New Revision: 782196409a4925dc855358e2d80635e43160e8ad
URL: https://github.com/llvm/llvm-project/commit/782196409a4925dc855358e2d80635e43160e8ad
DIFF: https://github.com/llvm/llvm-project/commit/782196409a4925dc855358e2d80635e43160e8ad.diff
LOG: [Debugify] Add precommit test for D138417
Check that we erase `llvm.debugify` metadata, but forget to erase `llvm.mir.debugify`.
Added: 
    
Modified: 
    llvm/test/CodeGen/Generic/MIRDebugify/locations-and-values.mir
Removed: 
    
################################################################################
diff  --git a/llvm/test/CodeGen/Generic/MIRDebugify/locations-and-values.mir b/llvm/test/CodeGen/Generic/MIRDebugify/locations-and-values.mir
index 5145349a34946..08f35c043934a 100644
--- a/llvm/test/CodeGen/Generic/MIRDebugify/locations-and-values.mir
+++ b/llvm/test/CodeGen/Generic/MIRDebugify/locations-and-values.mir
@@ -1,6 +1,8 @@
 # RUN: llc -run-pass=mir-debugify -o - %s | FileCheck --check-prefixes=ALL,VALUE %s
 # RUN: llc -run-pass=mir-debugify -debugify-level=locations -o - %s | FileCheck --check-prefixes=ALL --implicit-check-not=dbg.value %s
 # RUN: llc -run-pass=mir-debugify,mir-strip-debug,mir-debugify -o - %s | FileCheck --check-prefixes=ALL,VALUE %s
+# RUN: llc -run-pass=mir-debugify,mir-strip-debug -o - %s | FileCheck --check-prefix=STRIP %s
+
 --- |
   ; ModuleID = 'loc-only.ll'
   source_filename = "loc-only.ll"
@@ -24,6 +26,8 @@
   ; ALL: ![[VERSION]] = !{i32 2, !"Debug Info Version", i32 3}
   ; VALUE: [[VAR1:![0-9]+]] = !DILocalVariable(name: "1"
   ; VALUE: [[VAR2:![0-9]+]] = !DILocalVariable(name: "2"
+  ; STRIP-NOT: !llvm.debugify
+  ; STRIP: !llvm.mir.debugify
 
 ...
 ---
        
    
    
More information about the llvm-commits
mailing list