[PATCH] D44442: [X86] Teach X86TargetLowering::targetShrinkDemandedConstant to set non-demanded bits if it helps created an and mask that can be matched as a zero extend.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 14 09:59:11 PDT 2018
craig.topper added a comment.
The pattern matching detects (and (shift)) and (shift (and)) since we canonicalize the order of shifts and ands. This patch handles 0xffff for (and (srl)) and (shl (and))
Repository:
rL LLVM
https://reviews.llvm.org/D44442
More information about the llvm-commits
mailing list