Skip to content
  • Jakob Stoklund Olesen's avatar
    Handle overlapping regunit intervals in LiveIntervals::addKillFlags(). · bb4bdd89
    Jakob Stoklund Olesen authored
    We will soon allow virtual register live ranges to overlap regunit live
    ranges when the physreg is defined as a copy of the virtreg:
    
      %EAX = COPY %vreg5
      FOO %vreg5
      BAR %EAX<kill>
    
    There is no real interference since %vreg5 and %EAX have the same value
    where they overlap.
    
    This patch prevents addKillFlags from adding virtreg kill flags to FOO
    where the assigned physreg is overlapping the virtual register live
    range.
    
    llvm-svn: 163335
    bb4bdd89
Loading