https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79943
Bug ID: 79943 Summary: Loop splitting breaks with loops of pointer type Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: critical Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: aph at gcc dot gnu.org Target Milestone: --- Created attachment 40914 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40914&action=edit GCC test case, If a loop index has POINTER_TYPE, splitting generates incorrect splits because (end-beg) is incorrectly negated. Patch to follow.