[all-commits] [llvm/llvm-project] 769b97: [InstCombine] Add (vXi1 trunc(lshr(x, c))) -> icmp_...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Jul 2 08:57:38 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 769b9799307485aff87c562a8bafff828b166e2b
https://github.com/llvm/llvm-project/commit/769b9799307485aff87c562a8bafff828b166e2b
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2020-07-02 (Thu, 02 Jul 2020)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
M llvm/test/Transforms/InstCombine/apint-shift.ll
M llvm/test/Transforms/InstCombine/icmp.ll
Log Message:
-----------
[InstCombine] Add (vXi1 trunc(lshr(x,c))) -> icmp_eq(and(x,c')) support for non-uniform vectors
As noted on PR46531, we were only performing this transform on uniform vectors as we were using the m_APInt pattern matcher to extract the shift amount.
Differential Revision: https://reviews.llvm.org/D83035
More information about the All-commits
mailing list