[llvm] ee862ad - Fix signed/unsigned comparison warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 14 11:43:19 PDT 2020
Author: Simon Pilgrim
Date: 2020-03-14T18:42:27Z
New Revision: ee862adf607b10aac6dd1e4fa9eb3255ab46425d
URL: https://github.com/llvm/llvm-project/commit/ee862adf607b10aac6dd1e4fa9eb3255ab46425d
DIFF: https://github.com/llvm/llvm-project/commit/ee862adf607b10aac6dd1e4fa9eb3255ab46425d.diff
LOG: Fix signed/unsigned comparison warning.
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 d6cc2ec92b40..cd3fa5c5372b 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -7520,7 +7520,7 @@ static bool getFauxShuffleMask(SDValue N, const APInt &DemandedElts,
Offset = (X86ISD::VROTLI == Opcode ? NumBytesPerElt - Offset : Offset);
for (int i = 0; i != (int)NumElts; ++i) {
int BaseIdx = i * NumBytesPerElt;
- for (int j = 0; j != NumBytesPerElt; ++j) {
+ for (int j = 0; j != (int)NumBytesPerElt; ++j) {
Mask.push_back(BaseIdx + ((Offset + j) % NumBytesPerElt));
}
}
More information about the llvm-commits
mailing list