projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cb4a96
)
[x86] add cast to avoid compile-time warning; NFC
author
Sanjay Patel
<spatel@rotateright.com>
Mon, 18 Jan 2021 22:46:39 +0000
(17:46 -0500)
committer
Sanjay Patel
<spatel@rotateright.com>
Mon, 18 Jan 2021 22:47:04 +0000
(17:47 -0500)
llvm/lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86ISelLowering.cpp
b/llvm/lib/Target/X86/X86ISelLowering.cpp
index
60a2fd2
..
97fcef0
100644
(file)
--- 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: