[Bug tree-optimization/111718] Missed optimization of '(a+a)/a'

2023-10-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111718 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Ever confirmed|0

[Bug tree-optimization/111718] Missed optimization of '(a+a)/a'

2023-10-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111718 --- Comment #3 from Andrew Pinski --- For comment #2 from EVRP: Folding statement: _3 = _2 / a_5(D); Applying pattern match.pd:934, gimple-match-4.cc:2021 gimple_simplified to _3 = 2; Which corresponds to the match pattern: /* Simplify (t * 2)

[Bug tree-optimization/111718] Missed optimization of '(a+a)/a'

2023-10-07 Thread 652023330028 at smail dot nju.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111718 --- Comment #2 from Yi <652023330028 at smail dot nju.edu.cn> --- We noticed one change between gcc-13.2 and the current gcc-trunk: https://godbolt.org/z/j5Mnvno9n In the following code, gcc-13.2 does not yet have the ability to optimize as

[Bug tree-optimization/111718] Missed optimization of '(a+a)/a'

2023-10-07 Thread vanyacpp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111718 Ivan Sorokin changed: What|Removed |Added CC||vanyacpp at gmail dot com --- Comment