[Bug rtl-optimization/94945] New: Missed optimization: Carry chain not recognized in manually unrolled loop

2020-05-04 Thread madhur4127 at gmail dot com
: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: madhur4127 at gmail dot com Target Milestone: --- Context: Big integer addition using ADC (_addcarry_u64). See Godbolt link: https://godbolt.org/z/rMxe6W Example

[Bug tree-optimization/94945] Missed optimization: Carry chain not recognized in manually unrolled loop

2020-05-22 Thread madhur4127 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94945 Madhur Chauhan changed: What|Removed |Added Version|10.0|10.1.1 Component|rtl-optimizat

[Bug translation/95563] New: High memory usage and possible infinite loop

2020-06-06 Thread madhur4127 at gmail dot com
: translation Assignee: unassigned at gcc dot gnu.org Reporter: madhur4127 at gmail dot com Target Milestone: --- Created attachment 48693 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48693&action=edit Original code Attached simplified.cc, which aims to be a c

[Bug translation/95563] High memory usage and possible infinite loop

2020-06-06 Thread madhur4127 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95563 --- Comment #1 from Madhur Chauhan --- (In reply to Madhur Chauhan from comment #0) > Created attachment 48693 [details] > Original code My bad, this is the simplified version of the code but its name is misleading. The original code is in the U

[Bug rtl-optimization/93141] New: Missed optimization : Use of adc when checking overflow

2020-01-03 Thread madhur4127 at gmail dot com
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: madhur4127 at gmail dot com Target Milestone: --- Created attachment 47584 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47584&action=edit Complete code for comput

[Bug rtl-optimization/93142] New: Missed optimization : Use of adc when checking overflow

2020-01-03 Thread madhur4127 at gmail dot com
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: madhur4127 at gmail dot com Target Milestone: --- Created attachment 47585 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47585&action=edit Complete code for comput

[Bug target/93141] Missed optimization : Use of adc when checking overflow

2020-01-03 Thread madhur4127 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93141 --- Comment #1 from Madhur Chauhan --- The source of this bug is the stackoverflow Q&A: https://stackoverflow.com/questions/59575408/fastest-way-to-sum-dot-product-of-vector-of-unsigned-64-bit-integers-using-192-2/59579310#59579310

[Bug target/93141] Missed optimization : Use of adc when checking overflow

2020-01-04 Thread madhur4127 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93141 --- Comment #6 from Madhur Chauhan --- As far as I can tell optimal asm generated should be like: mov-load from on array mul or preferably mulx with a memory source from the other array add + adc into 128-bit answer register adc reg, 0 to accum

[Bug target/93141] Missed optimization : Use of adc when checking overflow

2020-01-04 Thread madhur4127 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93141 --- Comment #7 from Madhur Chauhan --- As far as I can tell optimal asm generated should be like: mov-load from on array mul or preferably mulx with a memory source from the other array add + adc into 128-bit answer register adc reg, 0 to accum

[Bug target/116414] New: Missed optimization: Branch elimination and memory writes

2024-08-19 Thread madhur4127 at gmail dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: madhur4127 at gmail dot com Target Milestone: --- Godbolt: https://godbolt.org/z/oKrGfh34z Code: ``` #include #include std::optional x(uint16_t x) { return x <= 1 ?

[Bug c++/109686] New: Errorneous infinite loop detection (-Winfinite-recursion)

2023-05-01 Thread madhur4127 at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: madhur4127 at gmail dot com Target Milestone: --- This code: ``` #define myassert(x) \ do { \ if (! (x) ) \ abort(); \ } while (false) static void recursive(int n

[Bug middle-end/107334] Incorrect "infinite recursion detected" warning if base case aborts

2023-05-01 Thread madhur4127 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107334 Madhur Chauhan changed: What|Removed |Added CC||madhur4127 at gmail dot com

[Bug middle-end/109686] Errorneous infinite loop detection (-Winfinite-recursion)

2023-05-01 Thread madhur4127 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109686 Madhur Chauhan changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRM

[Bug middle-end/107334] Incorrect "infinite recursion detected" warning if base case aborts

2023-05-01 Thread madhur4127 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107334 --- Comment #3 from Madhur Chauhan --- I feel changing the warning text will still cause troubles for people using -Werror. This forces to use ignore pragmas or disable this warning completely, none of them are ideal. Maybe disable warning in t

[Bug c++/110383] New: Missed optimiztion: Default operator== with trivial struct can be replaced with bcmp

2023-06-23 Thread madhur4127 at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: madhur4127 at gmail dot com Target Milestone: --- Godbolt: https://compiler-explorer.com/z/Gr8E5zfo5 Default operator== produces inefficient assembly where it