[llvm-branch-commits] [llvm] d27bb5c - [x86] add cast to avoid compile-time warning; NFC
Sanjay Patel via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jan 18 14:51:08 PST 2021
Author: Sanjay Patel
Date: 2021-01-18T17:47:04-05:00
New Revision: d27bb5c375ca8e96e15168587a3bcd91b244fcad
URL: https://github.com/llvm/llvm-project/commit/d27bb5c375ca8e96e15168587a3bcd91b244fcad
DIFF: https://github.com/llvm/llvm-project/commit/d27bb5c375ca8e96e15168587a3bcd91b244fcad.diff
LOG: [x86] add cast to avoid compile-time warning; NFC
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 60a2fd233d5c..97fcef0b92fa 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -10964,7 +10964,7 @@ static bool IsElementEquivalent(int MaskSize, SDValue Op, SDValue ExpectedOp,
case X86ISD::VBROADCAST_LOAD:
// TODO: Handle MaskSize != Op.getValueType().getVectorNumElements()?
return (Op == ExpectedOp &&
- Op.getValueType().getVectorNumElements() == MaskSize);
+ (int)Op.getValueType().getVectorNumElements() == MaskSize);
case X86ISD::HADD:
case X86ISD::HSUB:
case X86ISD::FHADD:
More information about the llvm-branch-commits
mailing list