[llvm] Introduce DIExpression::foldConstantMath() (PR #71718)
Shubham Sandeep Rastogi via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 13 12:59:04 PST 2023
================
@@ -1998,6 +1997,286 @@ DIExpression::constantFold(const ConstantInt *CI) {
ConstantInt::get(getContext(), NewInt)};
}
+static bool isConstOperation(uint64_t Op) {
----------------
rastogishubham wrote:
that is unfortunately taken by `DIExpression::isContant()` which doesn't do exactly the same thing, I have changed it to `isConstantVal`
https://github.com/llvm/llvm-project/pull/71718
More information about the llvm-commits
mailing list