[Bug tree-optimization/102131] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136

2021-11-15 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102131 --- Comment #8 from Jiu Fu Guo --- (In reply to Jakub Jelinek from comment #7) > Any further progress on this? Thanks, Jabkub! There is a patch that may cover more cases (PR102636/PR100740.. and other cases where 'vi0.step - iv1.step > 0'), bu

[Bug tree-optimization/29333] Jump threading getting in the way of PHI-OPT

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29333 --- Comment #10 from Andrew Pinski --- (In reply to rsand...@gcc.gnu.org from comment #8) > This may be worth filing as another PR (let me know if you > think I should), but another case of VRP stymieing phiopt is: > > void bar (int); > void > f

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #15 from Hongtao.liu --- (In reply to H.J. Lu from comment #13) > (In reply to Hongtao.liu from comment #8) > > unsigned long pscc_a_2_3; > > int pscc_a_1_4; > > unsigned long pc2; > > void pscc(int n) > > { > > long mask = 1ll <<

[Bug tree-optimization/103226] [12 Regression] Recent change to copy-headers causes execution failure for gcc.dg/torture/pr80974

2021-11-15 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103226 --- Comment #3 from Jeffrey A. Law --- Agreed on P1 until we understand. If it's target specific P4 seems appropriate. I don't see this failure on any other target in the tester.

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #16 from H.J. Lu --- (In reply to Hongtao.liu from comment #15) > (In reply to H.J. Lu from comment #13) > > (In reply to Hongtao.liu from comment #8) > > > unsigned long pscc_a_2_3; > > > int pscc_a_1_4; > > > unsigned long pc2; > >

[Bug tree-optimization/103245] Failure to detect abs pattern using multiplication with slightly different casts for unsigned case

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103245 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug target/93453] PPC: rldimi not taken into account to avoid shift+or

2021-11-15 Thread guihaoc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93453 --- Comment #4 from HaoChen Gui --- For the second issue, I drafted following insn_and_split pattern. It tries to combine the shift and ior when the nonzero_bits of operands[3] matches the condition. (define_insn_and_split "*rotl3_insert_8" [

[Bug target/103269] Enable ZMM in MOVE_MAX and STORE_MAX_PIECES without -mprefer-vector-width=512

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103269 --- Comment #1 from H.J. Lu --- Created attachment 51803 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51803&action=edit A patch Please try this.

[Bug tree-optimization/103192] [12 Regression] ICE on libgomp target-in-reduction-2.{C,c}

2021-11-15 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103192 Jeffrey A. Law changed: What|Removed |Added CC||law at gcc dot gnu.org --- Comment #16

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 --- Comment #6 from CVS Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:074ee8d9a91d7573c1e8774a22e4e08f923adb18 commit r12-5290-g074ee8d9a91d7573c1e8774a22e4e08f923adb18 Author: H.J. Lu Date: Mon Nov 15 17

[Bug tree-optimization/103268] [12 regression] ICE om glib-2.10.1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3626

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #17 from H.J. Lu --- (In reply to David Binderman from comment #0) > For this C code: > > long pscc_a_2_3; > int pscc_a_1_4; > void pscc() > { > pscc_a_1_4 = __sync_fetch_and_and(&pscc_a_2_3, 1); > } > > compiled by recent

[Bug middle-end/94785] Failure to detect abs pattern using multiplication

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94785 --- Comment #5 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3200de91bc70bfd6d4b7b40e769bc82756b9b555 commit r12-5291-g3200de91bc70bfd6d4b7b40e769bc82756b9b555 Author: Andrew Pinski Date: Mon

[Bug tree-optimization/103228] [9/10/11/12 Regression] missed optimization with |^ at the gimple level

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103228 --- Comment #5 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3200de91bc70bfd6d4b7b40e769bc82756b9b555 commit r12-5291-g3200de91bc70bfd6d4b7b40e769bc82756b9b555 Author: Andrew Pinski Date: Mo

[Bug tree-optimization/103245] Failure to detect abs pattern using multiplication with slightly different casts for unsigned case

2021-11-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103245 --- Comment #4 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:3200de91bc70bfd6d4b7b40e769bc82756b9b555 commit r12-5291-g3200de91bc70bfd6d4b7b40e769bc82756b9b555 Author: Andrew Pinski Date: Mo

[Bug tree-optimization/103245] Failure to detect abs pattern using multiplication with slightly different casts for unsigned case

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103245 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/103228] [9/10/11/12 Regression] missed optimization with |^ at the gimple level

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103228 Bug 103228 depends on bug 103245, which changed state. Bug 103245 Summary: Failure to detect abs pattern using multiplication with slightly different casts for unsigned case https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103245 What

[Bug tree-optimization/103228] [9/10/11/12 Regression] missed optimization with |^ at the gimple level

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103228 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization --- Comment #14 fro

[Bug tree-optimization/103257] [9/10/11/12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103257 --- Comment #6 from Andrew Pinski --- Created attachment 51804 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51804&action=edit untested Patch This is the patch which I am testing. I checked all of tree-ssa.exp and there are no failures.

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 --- Comment #17 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > *** Bug 102361 has been marked as a duplicate of this bug. *** Basic block 4 freq:0.00 size: 1 time:0.00 __write_overflow (); freq:0.00 size: 2 time:0.00

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #18 from Hongtao.liu --- Created attachment 51806 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51806&action=edit untested patch. I'm testing this patch.

[Bug ipa/101941] [12 Regression] Linux kernel build failure due to retaining fnsplit fragment with __attribute__((__error__))

2021-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 --- Comment #18 from Andrew Pinski --- I will write the testcases tomorrow. The patch works in the most general case.

[Bug tree-optimization/103194] [12 Regression] ice in optimize_atomic_bit_test_and with __sync_fetch_and_and since r12-5102-gfb161782545224f5

2021-11-15 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103194 --- Comment #19 from Hongtao.liu --- (In reply to Hongtao.liu from comment #18) > Created attachment 51806 [details] > untested patch. > > I'm testing this patch. This patch is for optimization.

[Bug tree-optimization/103266] [12 regression] llvm-13 miscompilation: __builtin_assume_aligned causes over-aggressive dce

2021-11-15 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103266 --- Comment #4 from rguenther at suse dot de --- On Mon, 15 Nov 2021, hubicka at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103266 > > Jan Hubicka changed: > >What|Removed |Added

[Bug testsuite/103270] New: [12 regression] gcc.dg/vect/pr96698.c inner loop turned from hot to cold after r12-4526

2021-11-15 Thread luoxhu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103270 Bug ID: 103270 Summary: [12 regression] gcc.dg/vect/pr96698.c inner loop turned from hot to cold after r12-4526 Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug ipa/103267] Wrong code with ipa-sra

2021-11-15 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103267 Martin Liška changed: What|Removed |Added Last reconfirmed||2021-11-16 Status|UNCONFIRME

<    1   2   3