[llvm] [GlobalOpt] Bail out for ConstantPtrAuth in isSimpleEnoughtToCommit. (PR #143400)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 9 09:37:07 PDT 2025


================
@@ -74,6 +74,9 @@ isSimpleEnoughValueToCommitHelper(Constant *C,
     return true;
   }
 
+  if (isa<ConstantPtrAuth>(C))
----------------
nikic wrote:

Should probably bail out on all non-ConstantExpr (use dyn_cast below)? There are a bunch of other special constants like dso_local_equivalent and no_cfi.

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


More information about the llvm-commits mailing list