[PATCH] D52121: [X86] Fold (movmsk (setne (and X, (1 << C)), 0)) -> (movmsk (X << C))
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 14 13:23:54 PDT 2018
lebedev.ri added inline comments.
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:38825
+ if (In.getOpcode() == ISD::AND && In.hasOneUse() &&
+ ISD::isConstantSplatVector(In.getOperand(1).getNode(), SplatVal) &
+ SplatVal.isPowerOf2()) {
----------------
That should probably be `&&`
https://reviews.llvm.org/D52121
More information about the llvm-commits
mailing list