[PATCH] D112795: [IR] Remove createReplacementInstr. NFC.
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 29 07:18:30 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG56f03d25b42a: [IR] Remove createReplacementInstr. NFC. (authored by foad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112795/new/
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.383343.patch
Type: text/x-patch
Size: 1296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211029/72ae0499/attachment.bin>
More information about the llvm-commits
mailing list