Skip to content
  • Evan Cheng's avatar
    Add a quick pass to optimize sign / zero extension instructions. For targets... · 30bebff4
    Evan Cheng authored
    Add a quick pass to optimize sign / zero extension instructions. For targets where the pre-extension values are available in the subreg of the result of the extension, replace the uses of the pre-extension value with the result + extract_subreg.
    
    For now, this pass is fairly conservative. It only perform the replacement when both the pre- and post- extension values are used in the block. It will miss cases where the post-extension values are live, but not used.
    
    llvm-svn: 93278
    30bebff4
Loading