From 6cfe9dac1546f57bdb30b6e0d08b6230e08a467e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 17 Feb 2025 01:26:40 -0800 Subject: [PATCH] [Analysis] Remove getGuaranteedNonPoisonOps commit 0517772b4ac20c5d3a0de0d4703354a179833248 Author: Philip Reames Date: Thu Dec 19 14:14:11 2024 -0800 --- llvm/include/llvm/Analysis/ValueTracking.h | 5 ----- llvm/lib/Analysis/ValueTracking.cpp | 8 -------- 2 files changed, 13 deletions(-) diff --git a/llvm/include/llvm/Analysis/ValueTracking.h b/llvm/include/llvm/Analysis/ValueTracking.h index 1b49f8a3e85b1..67f9f24c3b7a4 100644 --- a/llvm/include/llvm/Analysis/ValueTracking.h +++ b/llvm/include/llvm/Analysis/ValueTracking.h @@ -999,11 +999,6 @@ bool isGuaranteedToExecuteForEveryIteration(const Instruction *I, /// getGuaranteedNonPoisonOp. bool propagatesPoison(const Use &PoisonOp); -/// Insert operands of I into Ops such that I will trigger undefined behavior -/// if I is executed and that operand has a poison value. -void getGuaranteedNonPoisonOps(const Instruction *I, - SmallVectorImpl &Ops); - /// Return true if the given instruction must trigger undefined behavior /// when I is executed with any operands which appear in KnownPoison holding /// a poison value at the point of execution. diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index e4454c42c7857..91a5f194db9dc 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -8193,14 +8193,6 @@ static bool handleGuaranteedNonPoisonOps(const Instruction *I, } } -void llvm::getGuaranteedNonPoisonOps(const Instruction *I, - SmallVectorImpl &Operands) { - handleGuaranteedNonPoisonOps(I, [&](const Value *V) { - Operands.push_back(V); - return false; - }); -} - bool llvm::mustTriggerUB(const Instruction *I, const SmallPtrSetImpl &KnownPoison) { return handleGuaranteedNonPoisonOps(