[llvm] [IPSCCP][FuncSpec] Protect against metadata access from call args. (PR #124284)
Alexandros Lamprineas via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 07:33:17 PST 2025
================
@@ -415,6 +415,8 @@ Constant *InstCostVisitor::visitCallBase(CallBase &I) {
for (unsigned Idx = 0, E = I.getNumOperands() - 1; Idx != E; ++Idx) {
Value *V = I.getOperand(Idx);
+ if (isa<MetadataAsValue>(V))
----------------
labrinea wrote:
Should perhaps ConstantFoldCall be handling this?
https://github.com/llvm/llvm-project/pull/124284
More information about the llvm-commits
mailing list