[all-commits] [llvm/llvm-project] 35a7be: [SDAG] enable binop identity constant folds for sh...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Mar 21 06:03:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35a7be6ccb614a0b5d30c7f92aa2539bb0cf0dda
      https://github.com/llvm/llvm-project/commit/35a7be6ccb614a0b5d30c7f92aa2539bb0cf0dda
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-03-21 (Mon, 21 Mar 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/vector-bo-select.ll

  Log Message:
  -----------
  [SDAG] enable binop identity constant folds for shifts

Add shl/srl/sra to the list of ops that we canonicalize with a select to expose an identity merge

Differential Revision: https://reviews.llvm.org/D122070




More information about the All-commits mailing list