Skip to content

Commit e0545b5

Browse files
[Analysis] Remove getGuaranteedWellDefinedOps (llvm#127453)
The last use was removed in: commit ac9e677 Author: Yingwei Zheng <[email protected]> Date: Mon Feb 26 01:53:16 2024 +0800
1 parent ea7897a commit e0545b5

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

llvm/include/llvm/Analysis/ValueTracking.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,12 +1004,6 @@ bool propagatesPoison(const Use &PoisonOp);
10041004
void getGuaranteedNonPoisonOps(const Instruction *I,
10051005
SmallVectorImpl<const Value *> &Ops);
10061006

1007-
/// Insert operands of I into Ops such that I will trigger undefined behavior
1008-
/// if I is executed and that operand is not a well-defined value
1009-
/// (i.e. has undef bits or poison).
1010-
void getGuaranteedWellDefinedOps(const Instruction *I,
1011-
SmallVectorImpl<const Value *> &Ops);
1012-
10131007
/// Return true if the given instruction must trigger undefined behavior
10141008
/// when I is executed with any operands which appear in KnownPoison holding
10151009
/// 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
@@ -8175,14 +8175,6 @@ static bool handleGuaranteedWellDefinedOps(const Instruction *I,
81758175
return false;
81768176
}
81778177

8178-
void llvm::getGuaranteedWellDefinedOps(
8179-
const Instruction *I, SmallVectorImpl<const Value *> &Operands) {
8180-
handleGuaranteedWellDefinedOps(I, [&](const Value *V) {
8181-
Operands.push_back(V);
8182-
return false;
8183-
});
8184-
}
8185-
81868178
/// Enumerates all operands of \p I that are guaranteed to not be poison.
81878179
template <typename CallableT>
81888180
static bool handleGuaranteedNonPoisonOps(const Instruction *I,

0 commit comments

Comments
 (0)