Skip to content
  • Benjamin Kramer's avatar
    X86: Shrink certain forms of movsx. · 068a2253
    Benjamin Kramer authored
    In particular:
    movsbw %al, %ax   --> cbtw
    movswl %ax, %eax  --> cwtl
    movslq %eax, %rax --> cltq
    
    According to Intel's manual those have the same performance characteristics but
    come with a smaller encoding.
    
    llvm-svn: 186174
    068a2253
Loading