Skip to content
  1. Dec 15, 2011
    • Devang Patel's avatar
      Do not sink instruction, if it is not profitable. · c2686886
      Devang Patel authored
      On ARM, peephole optimization for ABS creates a trivial cfg triangle which tempts machine sink to sink instructions in code which is really straight line code. Sometimes this sinking may alter register allocator input such that use and def of a reg is divided by a branch in between, which may result in extra spills. Now mahine sink avoids sinking if final sink destination is post dominator.
      
      Radar 10266272.
      
      llvm-svn: 146604
      c2686886
  2. Dec 14, 2011
Loading