[llvm] r323502 - [X86] Simplify condition in VSETCC. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 23:15:19 PST 2018
Author: ctopper
Date: Thu Jan 25 23:15:18 2018
New Revision: 323502
URL: http://llvm.org/viewvc/llvm-project?rev=323502&view=rev
Log:
[X86] Simplify condition in VSETCC. NFC
This listed all legal 128-bit integer types individually, but since we already know we have a legal type and its integer, we can just check is128BitVector.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=323502&r1=323501&r2=323502&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Jan 25 23:15:18 2018
@@ -17950,8 +17950,7 @@ static SDValue LowerVSETCC(SDValue Op, c
}
// Lower using XOP integer comparisons.
- if ((VT == MVT::v16i8 || VT == MVT::v8i16 ||
- VT == MVT::v4i32 || VT == MVT::v2i64) && Subtarget.hasXOP()) {
+ if (VT.is128BitVector() && Subtarget.hasXOP()) {
// Translate compare code to XOP PCOM compare mode.
unsigned CmpMode = 0;
switch (Cond) {
More information about the llvm-commits
mailing list