[all-commits] [llvm/llvm-project] d48531: [TargetLowering] Emit SIGN_EXTEND_INREG instead of...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Feb 15 09:24:14 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d485317357376ba6335fe7116efec8edcebd689c
      https://github.com/llvm/llvm-project/commit/d485317357376ba6335fe7116efec8edcebd689c
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-02-15 (Thu, 15 Feb 2024)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

  Log Message:
  -----------
  [TargetLowering] Emit SIGN_EXTEND_INREG instead of shift pair from optimizeSetCCOfSignedTruncationCheck. (#81785)

sext_inreg is our canonical form of shift pair before op legalization so
DAG combiner will probably create it anyway. If it isn't legal
LegalizeDAG will expand to shifts later.




More information about the All-commits mailing list