[all-commits] [llvm/llvm-project] 4d3c42: [CodeGen] Use first EHLabel as a stop gate for liv...

Mirko via All-commits all-commits at lists.llvm.org
Fri Nov 1 19:13:39 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d3c427f339562b73938296d77103baf9ab9dc4b
      https://github.com/llvm/llvm-project/commit/4d3c427f339562b73938296d77103baf9ab9dc4b
  Author: Mirko <mirkomueller97 at live.de>
  Date:   2024-11-01 (Fri, 01 Nov 2024)

  Changed paths:
    M llvm/lib/CodeGen/LiveRangeShrink.cpp
    A llvm/test/CodeGen/X86/lrshrink-ehpad-phis.ll

  Log Message:
  -----------
  [CodeGen] Use first EHLabel as a stop gate for live range shrinking (#114195)

This fixes issue #114194

The issue happens during the `LiveRangeShrink` pass, which runs early,
before phi elimination. LandingPads, which are lowered to EHLabels, need
to be the first non phi instruction in an EHPad. In case of a phi node
being in front of the EHLabel and a use being after the EHLabel, we
hoist the use in front of the label.

This results in a portion of the landingpad missing due to being hoisted
in front of the label.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list