[all-commits] [llvm/llvm-project] f366ac: [DAG] Generalize (sra (trunc (sra x, c1)), c2) -> ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu May 26 06:05:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f366acdbf694f93e0d3fbaeec5a7756ea2032df2
      https://github.com/llvm/llvm-project/commit/f366acdbf694f93e0d3fbaeec5a7756ea2032df2
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-05-26 (Thu, 26 May 2022)

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

  Log Message:
  -----------
  [DAG] Generalize (sra (trunc (sra x, c1)), c2) -> (trunc (sra x, c1 + c2)) constant folding

Remove local (uniform) constant folding and rely on getNode() to perform it

Minor cleanup step toward adding non-uniform shift amount support




More information about the All-commits mailing list