[all-commits] [llvm/llvm-project] b651fd: [DAG] matchRotateSub - ensure the (pre-extended) s...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Aug 2 03:39:10 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b651fdff79027064071db7c1d0250553e3e6a232
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-08-02 (Tue, 02 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/X86/rotate5.ll

  Log Message:
  [DAG] matchRotateSub - ensure the (pre-extended) shift amount is wide enough for the amount mask (PR56859)

matchRotateSub is given shift amounts that will already have stripped any/zero-extend nodes from - so make sure those values are wide enough to take a mask.

More information about the All-commits mailing list