Commit 45032f1
[PATCH] RISC-V: Remove redundant CALL_P check
Ready for trunk (or gcc-17 since it's stage4 for gcc-16 now)?
------------------------------------------------------------------
From:钟居哲 <juzhe.zhong@rivai.ai>
Send Time:Thu, Jan 8, 2026, 10:51
To:Bohan Lei<garthlei@linux.alibaba.com>
CC:"gcc-patches"<gcc-patches@gcc.gnu.org>; "pan2.li"<pan2.li@intel.com>; Bohan Lei<garthlei@linux.alibaba.com>
Subject:Re: [PATCH] RISC-V: Remove redundant CALL_P check
LGTM
From: "Bohan Lei"<garthlei@linux.alibaba.com>
Date: Thu, Jan 8, 2026, 10:49
Subject: [PATCH] RISC-V: Remove redundant CALL_P check
To: <gcc-patches@gcc.gnu.org>
Cc: <juzhe.zhong@rivai.ai>, <pan2.li@intel.com>, "Bohan Lei"<garthlei@linux.alibaba.com>
Since we are using `reg_set_p` to check VXRM definition, the `CALL_P`
check has become redundant. VXRM is marked as call-used in riscv.h, and
`reg_set_p` in `vxrm_unknown_p` should always return true when a call is
encountered.
gcc/ChangeLog:
* config/riscv/riscv.cc (vxrm_unknown_p): Remove `CALL_P` check1 parent c7afa79 commit 45032f1
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14026 | 14026 | | |
14027 | 14027 | | |
14028 | 14028 | | |
14029 | | - | |
| 14029 | + | |
14030 | 14030 | | |
14031 | 14031 | | |
14032 | 14032 | | |
14033 | | - | |
14034 | | - | |
14035 | | - | |
14036 | | - | |
14037 | | - | |
14038 | 14033 | | |
14039 | 14034 | | |
14040 | 14035 | | |
| |||
0 commit comments