diff options
Diffstat (limited to 'llvm/tools/llvm-reduce')
-rw-r--r-- | llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp index 8b64467..79272fe 100644 --- a/llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceOperands.cpp @@ -73,6 +73,9 @@ static bool shouldReduceOperand(Use &Op) { if (&CB->getCalledOperandUse() == &Op) return false; } + // lifetime intrinsic argument must be an alloca. + if (isa<LifetimeIntrinsic>(Op.getUser())) + return false; return true; } |