[PATCH] D112795: [IR] Remove createReplacementInstr. NFC.
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 29 02:49:48 PDT 2021
foad created this revision.
Herald added subscribers: dexonsmith, hiraditya.
foad requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
It is unused since D112791 <https://reviews.llvm.org/D112791>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112795
Files:
llvm/include/llvm/IR/ReplaceConstant.h
llvm/lib/IR/ReplaceConstant.cpp
Index: llvm/lib/IR/ReplaceConstant.cpp
===================================================================
--- llvm/lib/IR/ReplaceConstant.cpp
+++ llvm/lib/IR/ReplaceConstant.cpp
@@ -17,11 +17,6 @@
#include "llvm/IR/NoFolder.h"
namespace llvm {
-// Replace a constant expression by instructions with equivalent operations at
-// a specified location.
-Instruction *createReplacementInstr(ConstantExpr *CE, Instruction *Instr) {
- return CE->getAsInstruction(Instr);
-}
void convertConstantExprsToInstructions(Instruction *I, ConstantExpr *CE,
SmallPtrSetImpl<Instruction *> *Insts) {
Index: llvm/include/llvm/IR/ReplaceConstant.h
===================================================================
--- llvm/include/llvm/IR/ReplaceConstant.h
+++ llvm/include/llvm/IR/ReplaceConstant.h
@@ -21,10 +21,6 @@
namespace llvm {
-/// Create a replacement instruction for constant expression \p CE and insert
-/// it before \p Instr.
-Instruction *createReplacementInstr(ConstantExpr *CE, Instruction *Instr);
-
/// The given instruction \p I contains given constant expression \p CE as one
/// of its operands, possibly nested within constant expression trees. Convert
/// all reachable paths from contant expression operands of \p I to \p CE into
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112795.383279.patch
Type: text/x-patch
Size: 1296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211029/ad41e2ab/attachment.bin>
More information about the llvm-commits
mailing list