[llvm] 3255015 - Fix incomplete conflict resolution in ff41fc07b12bd7bf3c8cd238824b16b1066fe5a0

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 6 07:55:26 PDT 2021


Author: Clement Courbet
Date: 2021-10-06T16:55:14+02:00
New Revision: 3255015407aa7efb0275edfcb9ee579dd4d33407

URL: https://github.com/llvm/llvm-project/commit/3255015407aa7efb0275edfcb9ee579dd4d33407
DIFF: https://github.com/llvm/llvm-project/commit/3255015407aa7efb0275edfcb9ee579dd4d33407.diff

LOG: Fix incomplete conflict resolution in ff41fc07b12bd7bf3c8cd238824b16b1066fe5a0

Added: 
    

Modified: 
    llvm/lib/Analysis/BasicAliasAnalysis.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index 6be377859846..68f052fee48c 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -321,14 +321,6 @@ struct ExtendedValue {
     return N;
   }
 
-  ConstantRange evaluateWith(ConstantRange N) const {
-    assert(N.getBitWidth() == V->getType()->getPrimitiveSizeInBits() &&
-           "Incompatible bit width");
-    if (SExtBits) N = N.signExtend(N.getBitWidth() + SExtBits);
-    if (ZExtBits) N = N.zeroExtend(N.getBitWidth() + ZExtBits);
-    return N;
-  }
-
   bool canDistributeOver(bool NUW, bool NSW) const {
     // zext(x op<nuw> y) == zext(x) op<nuw> zext(y)
     // sext(x op<nsw> y) == sext(x) op<nsw> sext(y)


        


More information about the llvm-commits mailing list