On Fri, Jun 14, 2024 at 9:20 PM Andrew MacLeod <amacl...@redhat.com> wrote: > > gimple_range_fold makes an assumption that if there is a LHS on a call > that it is an ssa_name. Especially later in compilation that may not be > true.
It's always true if the LHS is of register type (is_gimple_reg_type) and never true when the LHS is of aggregate type. So either range_of_call should have not been invoked here or it should indeed be defensive as in your patch. > This patch merely avoids calling routines that assume an ssa-name is > being passed in. > > Bootstraps on x86_64-pc-linux-gnu with no regressions. Pushed. > > Andrew >