[llvm] deb197f - [Hexagon] Use helper function introduced in prior commit, NFC

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 22 15:06:51 PDT 2022


Author: Krzysztof Parzyszek
Date: 2022-10-22T15:05:38-07:00
New Revision: deb197ffa3416176fa8f55118287e9eeea3babe0

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

LOG: [Hexagon] Use helper function introduced in prior commit, NFC

Added: 
    

Modified: 
    llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
index 5754775c061cb..078c4f48273c2 100644
--- a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
@@ -1986,8 +1986,8 @@ auto HexagonVectorCombine::calculatePointerDifference(Value *Ptr0,
           Simplify(CallBuilder(B, CreateSub(Idx0, Idx1)))))
     return Diff->getSExtValue() * Scale;
 
-  KnownBits Known0 = computeKnownBits(Idx0, DL, 0, &AC, Gep0, &DT);
-  KnownBits Known1 = computeKnownBits(Idx1, DL, 0, &AC, Gep1, &DT);
+  KnownBits Known0 = getKnownBits(Idx0, Gep0);
+  KnownBits Known1 = getKnownBits(Idx1, Gep1);
   APInt Unknown = ~(Known0.Zero | Known0.One) | ~(Known1.Zero | Known1.One);
   if (Unknown.isAllOnes())
     return std::nullopt;


        


More information about the llvm-commits mailing list