[all-commits] [llvm/llvm-project] 457660: [X86] Remove unnecessary isNullConstant in LowerSe...
topperc via All-commits
all-commits at lists.llvm.org
Thu Feb 20 21:41:33 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 457660683154014db4b649e852d152354844338a
https://github.com/llvm/llvm-project/commit/457660683154014db4b649e852d152354844338a
Author: Craig Topper <craig.topper at gmail.com>
Date: 2020-02-20 (Thu, 20 Feb 2020)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
Log Message:
-----------
[X86] Remove unnecessary isNullConstant in LowerSelect. NFC
At this point in the code we know that Op1 or Op2 is
all ones. Y points to the other operand. In the case that
Op2 is zero, Op1 must be all ones and Y is Op2. The OR
ORs Y into Res. But if Y is 0 the OR will be folded away by
getNode so we don't need to check for it.
More information about the All-commits
mailing list