[all-commits] [llvm/llvm-project] 8fb464: [InstCombine] FoldShiftByConstant - use m_Specific...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Oct 5 10:56:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8fb4645321765124aa89c8e798a989eae38739ce
      https://github.com/llvm/llvm-project/commit/8fb4645321765124aa89c8e798a989eae38739ce
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-05 (Mon, 05 Oct 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp

  Log Message:
  -----------
  [InstCombine] FoldShiftByConstant - use m_Specific. NFCI.

Use m_Specific instead of m_Value followed by an equality check - we already do this for the similar folds above, it looks like an oversight in rG2b459fe7e1e where the original pattern match code looked a little different.




More information about the All-commits mailing list