https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118380
Bug ID: 118380 Summary: GCC is not optimizing computataion and code with avx intrinsics. Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vekumar at gcc dot gnu.org Target Milestone: --- For the test case in the given link https://godbolt.org/z/MP88MaTva LLVM is able to optimize the loop and computations hapenning completely. GCC is not able to do so. Arrays are defined locally and may not be the case with real world application. Nevertheless GCC can also optimize this case.