Skip to content
  • Jakob Stoklund Olesen's avatar
    Only check for PHI uses inside the current loop. · a3e86a60
    Jakob Stoklund Olesen authored
    Hoisting a value that is used by a PHI in the loop will introduce a
    copy because the live range is extended to cross the PHI.
    
    The same applies to PHIs in exit blocks.
    
    Also use this opportunity to make HasLoopPHIUse() non-recursive.
    
    llvm-svn: 154454
    a3e86a60
Loading