aboutsummaryrefslogtreecommitdiff
path: root/lib/parsers/llvm-pass-dump-parser.ts
diff options
context:
space:
mode:
authorMarc Auberer <marc.auberer@chillibits.com>2024-02-13 04:52:45 +0100
committerGitHub <noreply@github.com>2024-02-12 21:52:45 -0600
commitc8f0409c250c9a43b72d91462dae796ebba77f9c (patch)
treea35d924b18f5f9cb87ea721481c3125555969eb6 /lib/parsers/llvm-pass-dump-parser.ts
parent54dda76f226027db35fb699d5c4179f545317fc5 (diff)
downloadcompiler-explorer-c8f0409c250c9a43b72d91462dae796ebba77f9c.tar.gz
compiler-explorer-c8f0409c250c9a43b72d91462dae796ebba77f9c.zip
Accept tail calls for llvm.dbg filters (#6129)gh-10612
This adds support for filtering tail calls to `llvm.dbg.*` intrinsics using the regex-based filter mechanism. Previously, normal calls were filtered out, but tail calls are not caught by the regex so they remained in the output. Example with the previous state: https://play.spicelang.com/z/MGGn98
Diffstat (limited to 'lib/parsers/llvm-pass-dump-parser.ts')
-rw-r--r--lib/parsers/llvm-pass-dump-parser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parsers/llvm-pass-dump-parser.ts b/lib/parsers/llvm-pass-dump-parser.ts
index 97419aeef..2fd17e64e 100644
--- a/lib/parsers/llvm-pass-dump-parser.ts
+++ b/lib/parsers/llvm-pass-dump-parser.ts
@@ -99,7 +99,7 @@ export class LlvmPassDumpParser {
// Additional filters conditionally enabled by `filterDebugInfo`
this.debugInfoFilters = [
- /^\s+call void @llvm.dbg.+$/, // dbg calls
+ /^\s+(tail\s)?call void @llvm.dbg.+$/, // dbg calls
/^\s+DBG_.+$/, // dbg pseudo-instructions
/^(!\d+) = (?:distinct )?!DI([A-Za-z]+)\(([^)]+?)\)/, // meta
/^(!\d+) = (?:distinct )?!{.*}/, // meta