diff options
author | Marc Auberer <marc.auberer@chillibits.com> | 2024-02-13 04:52:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 21:52:45 -0600 |
commit | c8f0409c250c9a43b72d91462dae796ebba77f9c (patch) | |
tree | a35d924b18f5f9cb87ea721481c3125555969eb6 /lib/parsers/llvm-pass-dump-parser.ts | |
parent | 54dda76f226027db35fb699d5c4179f545317fc5 (diff) | |
download | compiler-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.ts | 2 |
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 |