Skip to content
  • Dan Gohman's avatar
    Use a sign-extend instead of a zero-extend when promoting a · 8078b8bd
    Dan Gohman authored
    trip count value when the original loop iteration condition is
    signed and the canonical induction variable won't undergo signed
    overflow. This isn't required for correctness; it just preserves
    more information about original loop iteration values.
    
    Add a getTruncateOrSignExtend method to ScalarEvolution,
    following getTruncateOrZeroExtend.
    
    llvm-svn: 64918
    8078b8bd
Loading