Question about the pass_fre about merging if blocks.

2023-10-20 Thread Hanke Zhang via Gcc
Hi, I'm trying to make pass_fre work better for me. But I got a problem. Like the code below: int glob; void __attribute__((oninline)) foo() { // do nothing meaningful } int main() { if (glob) { foo(); } else { // do something that won't change glob } if (glob) { foo();

Re: Question about the pass_fre about merging if blocks.

2023-10-20 Thread Richard Biener via Gcc
On Fri, Oct 20, 2023 at 1:48 PM Hanke Zhang via Gcc wrote: > > Hi, I'm trying to make pass_fre work better for me. But I got a > problem. Like the code below: > > int glob; > > void __attribute__((oninline)) > foo() { > // do nothing meaningful > } > > int main() { > if (glob) { > foo(); >

Re: Question about the pass_fre about merging if blocks.

2023-10-20 Thread Hanke Zhang via Gcc
Richard Biener 于2023年10月20日周五 21:33写道: > > On Fri, Oct 20, 2023 at 1:48 PM Hanke Zhang via Gcc wrote: > > > > Hi, I'm trying to make pass_fre work better for me. But I got a > > problem. Like the code below: > > > > int glob; > > > > void __attribute__((oninline)) > > foo() { > > // do nothing

Re: Question about the pass_fre about merging if blocks.

2023-10-20 Thread Richard Biener via Gcc
> Am 20.10.2023 um 16:33 schrieb Hanke Zhang : > > Richard Biener 于2023年10月20日周五 21:33写道: >> >>> On Fri, Oct 20, 2023 at 1:48 PM Hanke Zhang via Gcc wrote: >>> >>> Hi, I'm trying to make pass_fre work better for me. But I got a >>> problem. Like the code below: >>> >>> int glob; >>> >>>

gcc-12-20231020 is now available

2023-10-20 Thread GCC Administrator via Gcc
Snapshot gcc-12-20231020 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20231020/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch