https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114985

--- Comment #10 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
(In reply to David Edelsohn from comment #9)
> The patch in comment 6 succeeds for me, but it seems more of a heavy-handed
> band-aid that confirms the symptom, but covers up the problem.
> 
> Something in GCC apparently has generated invalid IR that was not caught
> earlier.  GCC should not generate
> 
> POINTER = POINTER CMP POINTER
> 
> But the trunk should not be left in a broken state as per GCC development
> policy.  The broken trunk interferes with the work of other developers and
> may mask other broken patches being committed.
> 
> This patch should be reverted until the source of the problem is discovered
> and fixed.

The range request is not necessarily coming from the IR, but it is a request
that the IPA pass is making of the ranger, which does adhere by gimple IR
rules.  So this may not be bad IR, but just a quirk of how IPA makes requests
of the ranger.  As such, I don't think it's heavy handed, but we do need the
IPA experts to opine.

Reply via email to