Skip to content
  • Evan Cheng's avatar
    Fix PR5391: support early clobber physical register def tied with a use (ewwww) · 732351f7
    Evan Cheng authored
    - A valno should be set HasRedefByEC if there is an early clobber def in the middle of its live ranges. It should not be set if the def of the valno is defined by an early clobber.
    - If a physical register def is tied to an use and it's an early clobber, it just means the HasRedefByEC is set since it's still one continuous live range.
    - Add a couple of missing checks for HasRedefByEC in the coalescer. In general, it should not coalesce a vr with a physical register if the physical register has a early clobber def somewhere. This is overly conservative but that's the price for using such a nasty inline asm "feature".
    
    llvm-svn: 90269
    732351f7
Loading