Skip to content

Commit 56f03d2

Browse files
committed
[IR] Remove createReplacementInstr. NFC.
It is unused since D112791. Differential Revision: https://reviews.llvm.org/D112795
1 parent 1b75892 commit 56f03d2

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

llvm/include/llvm/IR/ReplaceConstant.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121

2222
namespace llvm {
2323

24-
/// Create a replacement instruction for constant expression \p CE and insert
25-
/// it before \p Instr.
26-
Instruction *createReplacementInstr(ConstantExpr *CE, Instruction *Instr);
27-
2824
/// The given instruction \p I contains given constant expression \p CE as one
2925
/// of its operands, possibly nested within constant expression trees. Convert
3026
/// all reachable paths from contant expression operands of \p I to \p CE into

llvm/lib/IR/ReplaceConstant.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
#include "llvm/IR/NoFolder.h"
1818

1919
namespace llvm {
20-
// Replace a constant expression by instructions with equivalent operations at
21-
// a specified location.
22-
Instruction *createReplacementInstr(ConstantExpr *CE, Instruction *Instr) {
23-
return CE->getAsInstruction(Instr);
24-
}
2520

2621
void convertConstantExprsToInstructions(Instruction *I, ConstantExpr *CE,
2722
SmallPtrSetImpl<Instruction *> *Insts) {

0 commit comments

Comments
 (0)