[PATCH] D80602: [BranchFolding] Drop location when hoisting

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 18:33:38 PDT 2020


davide marked an inline comment as done.
davide added inline comments.
Herald added a subscriber: ormris.


================
Comment at: llvm/test/DebugInfo/MIR/X86/branch-folder-hoisting-location.mir:1-6
+--- |
+  ; RUN: llc --run-pass=branch-folder %s -o - | FileCheck %s --match-full-lines
+
+  ; Make sure that the MOV32ri we're hoisting doesn't retain any debug location.
+  ; CHECK: DBG_VALUE $ecx, $noreg, !23, !DIExpression(), debug-location !24
+  ; CHECK-NEXT: $eax = MOV32ri 5
----------------
Probably this test can be trimmed, but I wanted to put this online to get a general feeling of the idea.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80602/new/

https://reviews.llvm.org/D80602





More information about the llvm-commits mailing list