[llvm] [LoongArch] Use getSignedConstant() where necessary (PR #117172)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 01:31:24 PST 2024


================
@@ -1787,6 +1787,12 @@ SDValue SelectionDAG::getIntPtrConstant(uint64_t Val, const SDLoc &DL,
   return getConstant(Val, DL, TLI->getPointerTy(getDataLayout()), isTarget);
 }
 
+SDValue SelectionDAG::getSignedIntPtrConstant(int64_t Val, const SDLoc &DL,
+                                              bool isTarget) {
+  return getSignedConstant(Val, DL, TLI->getPointerTy(getDataLayout()),
+                           isTarget);
+}
----------------
nikic wrote:

This is just a signed copy of an existing API. But I just dropped it again -- it's just the one call and we already have the right VT there anyway, so there's really no benefit to having this...

https://github.com/llvm/llvm-project/pull/117172


More information about the llvm-commits mailing list