[all-commits] [llvm/llvm-project] f791ad: [InstCombine] remove scalar constraint for mask-of...

RotateRight via All-commits all-commits at lists.llvm.org
Tue Nov 17 09:14:23 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f791ad7e1e9850a6dc28747ad3d8b21b9e382c31
      https://github.com/llvm/llvm-project/commit/f791ad7e1e9850a6dc28747ad3d8b21b9e382c31
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-11-17 (Tue, 17 Nov 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/and.ll

  Log Message:
  -----------
  [InstCombine] remove scalar constraint for mask-of-add fold

https://rise4fun.com/Alive/V6fP

  Name: add with low mask
  Pre: (C1 & (-1 u>> countLeadingZeros(C2))) == 0
  %a = add i8 %x, C1
  %r = and i8 %a, C2
  =>
  %r = and i8 %x, C2




More information about the All-commits mailing list