[all-commits] [llvm/llvm-project] 3170d5: [InstCombine][X86] Covert masked load/stores with ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Sep 12 07:24:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3170d54842655d6d936aae32b7d0bc92fce7f22e
      https://github.com/llvm/llvm-project/commit/3170d54842655d6d936aae32b7d0bc92fce7f22e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-09-12 (Sat, 12 Sep 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
    M llvm/test/Transforms/InstCombine/X86/x86-masked-memops.ll

  Log Message:
  -----------
  [InstCombine][X86] Covert masked load/stores with (sign extended) bool vector masks to generic intrinsics.

As detailed on PR11210, if the mask is known to come from a (sign extended) bool vector (e.g. comparisons) then we can represent with a generic masked load/store without losing anything.

We already do something similar for BLENDV -> SELECT conversion.




More information about the All-commits mailing list