Bug 474280

Summary: Add Ijk_ExitBB IR for potential critical state
Product: [Developer tools] valgrind Reporter: JojoR <rjiejie>
Component: vexAssignee: Julian Seward <jseward>
Status: REPORTED ---    
Severity: normal CC: jlp
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: v1-0001-VEX-Add-Ijk_ExitBB-IR-for-potential-critical-state-c.patch
v1-0001-VEX-Add-Ijk_ExitBB-IR-for-potential-critical-state-c.patch

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