[all-commits] [llvm/llvm-project] 0527c8: [InstCombine] ease alignment restriction for conve...

RotateRight via All-commits all-commits at lists.llvm.org
Tue Sep 29 12:26:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0527c8749b90cc742077ae9b3def80efde721090
      https://github.com/llvm/llvm-project/commit/0527c8749b90cc742077ae9b3def80efde721090
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-09-29 (Tue, 29 Sep 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/masked_intrinsics.ll

  Log Message:
  -----------
  [InstCombine] ease alignment restriction for converting masked load to normal load

I think we initially made this fold conservative to be safer, but we do not
need the alignment attribute/metadata limitation because the masked load
intrinsic itself specifies the alignment. A normal vector load is better for
IR transforms and should be no worse in codegen than the masked alternative.
If it is worse for some target, the backend can reverse this transform.

Differential Revision: https://reviews.llvm.org/D88505




More information about the All-commits mailing list