[llvm] 6c21716 - Fix gcc signed/unsigned comparison warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 27 03:50:50 PDT 2025
Author: Simon Pilgrim
Date: 2025-03-27T10:50:37Z
New Revision: 6c2171672f03356835c534a0ec18250233ea66db
URL: https://github.com/llvm/llvm-project/commit/6c2171672f03356835c534a0ec18250233ea66db
DIFF: https://github.com/llvm/llvm-project/commit/6c2171672f03356835c534a0ec18250233ea66db.diff
LOG: Fix gcc signed/unsigned comparison 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 81c75a2f98079..a514e7f1ab48c 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -58959,7 +58959,7 @@ static SDValue combineINSERT_SUBVECTOR(SDNode *N, SelectionDAG &DAG,
// If we're splatting the lower half subvector of a full vector load into the
// upper half, attempt to create a subvector broadcast.
// TODO: Drop hasOneUse checks.
- if (IdxVal == (VecNumElts / 2) &&
+ if ((int)IdxVal == (VecNumElts / 2) &&
Vec.getValueSizeInBits() == (2 * SubVec.getValueSizeInBits()) &&
(Vec.hasOneUse() || SubVec.hasOneUse())) {
auto *VecLd = dyn_cast<LoadSDNode>(Vec);
More information about the llvm-commits
mailing list