[Bug tree-optimization/103514] Missing XOR-EQ-AND Optimization

2021-11-30 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103514 --- Comment #2 from Navid Rahimi --- Exactly. Actually in my final version I had it with single loop, but didn't know I can remove the condition too. Thanks Andrew.

[Bug tree-optimization/103514] New: Missing XOR-EQ-AND Optimization

2021-11-30 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103514 Bug ID: 103514 Summary: Missing XOR-EQ-AND Optimization Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimiza

[Bug tree-optimization/103509] ((-1u >> t) & b) != 0 is not optimized to b != 0

2021-11-30 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103509 Navid Rahimi changed: What|Removed |Added CC||navidrahimi at microsoft dot com --- Co

[Bug tree-optimization/98956] Failure to optimize out boolean left shift

2021-11-16 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98956 Navid Rahimi changed: What|Removed |Added CC||navidrahimi at microsoft dot com --- Com

[Bug tree-optimization/86136] Modular multiplication optimization

2021-11-16 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86136 Navid Rahimi changed: What|Removed |Added CC||navidrahimi at microsoft dot com --- Com

[Bug tree-optimization/102929] [missed optimization] two ways to rounddown-to-next-multiple

2021-11-16 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102929 Navid Rahimi changed: What|Removed |Added CC||navidrahimi at microsoft dot com --- Co

[Bug tree-optimization/93150] (A&N) == CST1 &( ((A&M)==CST2) | ((A&O)==CST3) ) is not simplified

2021-11-11 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93150 --- Comment #4 from Navid Rahimi --- Although I wrote a small code to just test this optimization. But I am not able to verify this transformation [1]. https://alive2.llvm.org/ce/z/THP27D The code can be something like this but if I were able t

[Bug tree-optimization/93150] (A&N) == CST1 &( ((A&M)==CST2) | ((A&O)==CST3) ) is not simplified

2021-11-11 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93150 --- Comment #3 from Navid Rahimi --- Thanks Dávid, that does make sense. I forgot about constant elimination. I will send a patch for this.

[Bug middle-end/101955] (signed<<

2021-11-10 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101955 navidrahimi changed: What|Removed |Added CC||navidrahimi at microsoft dot com --- Com

[Bug tree-optimization/96779] Failure to optimize comparison of negative version of self

2021-11-10 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96779 --- Comment #5 from navidrahimi --- And this is the behavior of different compilers for this optimization: https://compiler-explorer.com/z/ahdEzxxTv

[Bug tree-optimization/96779] Failure to optimize comparison of negative version of self

2021-11-10 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96779 navidrahimi changed: What|Removed |Added CC||navidrahimi at microsoft dot com --- Comm

[Bug tree-optimization/93150] (A&N) == CST1 &( ((A&M)==CST2) | ((A&O)==CST3) ) is not simplified

2021-11-10 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93150 navidrahimi changed: What|Removed |Added CC||navidrahimi at microsoft dot com --- Comm

[Bug tree-optimization/102232] Missed arithmetic fold

2021-11-10 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102232 --- Comment #7 from navidrahimi --- The new version of the patch I attached to this bug has been approved by Richard Biener in this thread [1]. 1) https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583935.html

[Bug tree-optimization/102232] Missed arithmetic fold

2021-11-10 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102232 --- Comment #6 from navidrahimi --- Created attachment 51760 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51760&action=edit [PATCH] PR tree-optimization/102232 Adding a missing pattern to match.pd

[Bug tree-optimization/102232] Missed arithmetic fold

2021-11-10 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102232 navidrahimi changed: What|Removed |Added Attachment #51752|0 |1 is obsolete|

[Bug tree-optimization/102232] Missed arithmetic fold

2021-11-08 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102232 --- Comment #4 from navidrahimi --- This patch I attached will fix this problem and does include the test [1]. You can follow the discussion in GCC-Patches here [1]. Although it seems I still have problem to fix with MIME type of the patch in ma

[Bug tree-optimization/102232] Missed arithmetic fold

2021-11-08 Thread navidrahimi at microsoft dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102232 navidrahimi changed: What|Removed |Added CC||navidrahimi at microsoft dot com --- Com