Bug 474280 - Add Ijk_ExitBB IR for potential critical state
Summary: Add Ijk_ExitBB IR for potential critical state
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: vex (show other bugs)
Version: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-08 02:11 UTC by JojoR
Modified: 2024-12-23 20:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
v1-0001-VEX-Add-Ijk_ExitBB-IR-for-potential-critical-state-c.patch (1.72 KB, application/mbox)
2023-09-08 02:11 UTC, JojoR
Details
v1-0001-VEX-Add-Ijk_ExitBB-IR-for-potential-critical-state-c.patch (1.72 KB, text/plain)
2023-09-08 02:12 UTC, JojoR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JojoR 2023-09-08 02:11:42 UTC
Created attachment 161502 [details]
v1-0001-VEX-Add-Ijk_ExitBB-IR-for-potential-critical-state-c.patch

Generally we use Ijk_Boring in most jump instructions,
and some backends use this IR to make BB optimization 'chaining' in instruction selection stage.

For some special ISAs like RISC-V vector [1], vsetvl/vsetvli instruction will set VTYPE/VL CSRs
which are depended by next BB, so we add this new Ijk_ExitBB IR to exit BB
without any optimization.

[1] https://github.com/riscv/riscv-v-spec
Comment 1 JojoR 2023-09-08 02:12:36 UTC
Created attachment 161503 [details]
v1-0001-VEX-Add-Ijk_ExitBB-IR-for-potential-critical-state-c.patch
Comment 2 JojoR 2023-09-08 02:14:03 UTC
authors:
 - zhaomingxin@linux.alibaba.com
 - rjiejie@linux.alibaba.com