[llvm] 7948d89 - Fix "[llvm/CodeGen] Enable the ExpandLargeDivRem pass for X86, Arm and AArch64" compilation on Windows

Matthias Gehre via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 6 08:19:20 PDT 2022


Author: Matthias Gehre
Date: 2022-09-06T16:11:14+01:00
New Revision: 7948d89afec30b87d0e5f395664776efdabef824

URL: https://github.com/llvm/llvm-project/commit/7948d89afec30b87d0e5f395664776efdabef824
DIFF: https://github.com/llvm/llvm-project/commit/7948d89afec30b87d0e5f395664776efdabef824.diff

LOG: Fix "[llvm/CodeGen] Enable the ExpandLargeDivRem pass for X86, Arm and AArch64" compilation on Windows

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/TargetTransformInfoImpl.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
index 487a43926443..b74414652405 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
@@ -291,7 +291,7 @@ class TargetTransformInfoImplBase {
 
   bool hasDivRemOp(Type *DataType, bool IsSigned) const { return false; }
 
-  bool maxLegalDivRemBitWidth() const {
+  unsigned maxLegalDivRemBitWidth() const {
     return llvm::IntegerType::MAX_INT_BITS;
   }
 


        


More information about the llvm-commits mailing list