Skip to content

Commit 6a30076

Browse files
[Analysis] Remove getGuaranteedNonPoisonOps (#127461)
commit 0517772 Author: Philip Reames <[email protected]> Date: Thu Dec 19 14:14:11 2024 -0800
1 parent 8aff59d commit 6a30076

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

llvm/include/llvm/Analysis/ValueTracking.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -999,11 +999,6 @@ bool isGuaranteedToExecuteForEveryIteration(const Instruction *I,
999999
/// getGuaranteedNonPoisonOp.
10001000
bool propagatesPoison(const Use &PoisonOp);
10011001

1002-
/// Insert operands of I into Ops such that I will trigger undefined behavior
1003-
/// if I is executed and that operand has a poison value.
1004-
void getGuaranteedNonPoisonOps(const Instruction *I,
1005-
SmallVectorImpl<const Value *> &Ops);
1006-
10071002
/// Return true if the given instruction must trigger undefined behavior
10081003
/// when I is executed with any operands which appear in KnownPoison holding
10091004
/// a poison value at the point of execution.

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8193,14 +8193,6 @@ static bool handleGuaranteedNonPoisonOps(const Instruction *I,
81938193
}
81948194
}
81958195

8196-
void llvm::getGuaranteedNonPoisonOps(const Instruction *I,
8197-
SmallVectorImpl<const Value *> &Operands) {
8198-
handleGuaranteedNonPoisonOps(I, [&](const Value *V) {
8199-
Operands.push_back(V);
8200-
return false;
8201-
});
8202-
}
8203-
82048196
bool llvm::mustTriggerUB(const Instruction *I,
82058197
const SmallPtrSetImpl<const Value *> &KnownPoison) {
82068198
return handleGuaranteedNonPoisonOps(

0 commit comments

Comments
 (0)