[llvm] 5c672d8 - Fix MSVC signed/unsigned mismatch warning. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 02:48:54 PST 2023


Author: Simon Pilgrim
Date: 2023-12-04T10:48:33Z
New Revision: 5c672d87ea5e63bf5e218c871228b62358e1ba51

URL: https://github.com/llvm/llvm-project/commit/5c672d87ea5e63bf5e218c871228b62358e1ba51
DIFF: https://github.com/llvm/llvm-project/commit/5c672d87ea5e63bf5e218c871228b62358e1ba51.diff

LOG: Fix MSVC signed/unsigned mismatch warning. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/ARM/ARMISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index c8632d2aedb16..36e3d1fbf856f 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1981,7 +1981,7 @@ Sched::Preference ARMTargetLowering::getSchedulingPreference(SDNode *N) const {
   if (MCID.getNumDefs() == 0)
     return Sched::RegPressure;
   if (!Itins->isEmpty() &&
-      Itins->getOperandCycle(MCID.getSchedClass(), 0) > 2)
+      Itins->getOperandCycle(MCID.getSchedClass(), 0) > 2U)
     return Sched::ILP;
 
   return Sched::RegPressure;


        


More information about the llvm-commits mailing list