-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[SDAG] Use useDebugInstrRef instead of shouldUseDebugInstrRef #160686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mikolaj-pirog
merged 6 commits into
llvm:main
from
mikolaj-pirog:mpirog/fix-wrong-instr-ref
Oct 8, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d73e3a7
Use useDebugInstrRef instead of shouldUseDebugInstrRef
mikolaj-pirog fc4e588
Merge remote-tracking branch 'origin/main' into mpirog/fix-wrong-inst…
mikolaj-pirog 5b69ca6
Merge remote-tracking branch 'other/main' into mpirog/fix-wrong-instr…
mikolaj-pirog 1c7ada8
Merge remote-tracking branch 'other/main' into mpirog/fix-wrong-instr…
mikolaj-pirog fb7dd26
Add test
mikolaj-pirog 57c39f4
Fix test
mikolaj-pirog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
; RUN: llc %s -o - -stop-after=livedebugvalues -opt-bisect-limit=1 | FileCheck %s | ||
; RUN: llc %s -o - -stop-after=livedebugvalues -opt-bisect-limit=10 | FileCheck %s | ||
; RUN: llc %s -o - -stop-after=livedebugvalues -opt-bisect-limit=100 | FileCheck %s | ||
|
||
; RUN: llc %s -o - -stop-after=livedebugvalues -opt-bisect-limit=1 -fast-isel=true | FileCheck %s | ||
; RUN: llc %s -o - -stop-after=livedebugvalues -opt-bisect-limit=10 -fast-isel=true | FileCheck %s | ||
; RUN: llc %s -o - -stop-after=livedebugvalues -opt-bisect-limit=100 -fast-isel=true | FileCheck %s | ||
|
||
; This test has the same purpose as the instr-ref-opt-bisect.ll, to check if | ||
; during opt-bisect's optimisation level change we won't run into an assert. | ||
; This is simply testing different IR. | ||
|
||
; CHECK: DBG_VALUE | ||
|
||
target triple = "x86_64-pc-windows-msvc" | ||
|
||
define i1 @foo(i32 %arg) !dbg !3 { | ||
entry: | ||
#dbg_value(i32 %arg, !4, !DIExpression(), !5) | ||
switch i32 %arg, label %bb [ | ||
i32 810, label %bb | ||
], !dbg !5 | ||
bb: | ||
%a = load volatile i1, ptr null, align 1 | ||
ret i1 false | ||
} | ||
|
||
!llvm.dbg.cu = !{!0} | ||
!llvm.module.flags = !{!2} | ||
|
||
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1) | ||
!1 = !DIFile(filename: "instr-ref-opt-bisect2.ll", directory: ".") | ||
!2 = !{i32 2, !"Debug Info Version", i32 3} | ||
!3 = distinct !DISubprogram(name: "instr-ref-opt-bisect2", file: !1, unit: !0) | ||
!4 = !DILocalVariable(name: "arg", arg: 2, scope: !3) | ||
!5 = !DILocation(line: 0, scope: !3) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.