aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2023-12-15 14:25:53 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2023-12-15 14:45:17 +0000
commit163aeca33d4adb97e8599584409457ca14b1419b (patch)
treed9b30d661c9c4873c1b8cfed9301ac504a629115 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent37332bc09a743b5f760d4cbd675a1f3e9e6b8f09 (diff)
downloadllvm-163aeca33d4adb97e8599584409457ca14b1419b.zip
llvm-163aeca33d4adb97e8599584409457ca14b1419b.tar.gz
llvm-163aeca33d4adb97e8599584409457ca14b1419b.tar.bz2
[CodeGenPrepare] Remove unused TypePromotionTransaction::moveBefore to fix gcc Wunused-function warning. NFC.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index f9e791c..e06b430 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -3218,10 +3218,6 @@ public:
/// Same as IRBuilder::createZExt.
Value *createZExt(Instruction *Inst, Value *Opnd, Type *Ty);
- /// Same as Instruction::moveBefore.
- void moveBefore(Instruction *Inst, Instruction *Before);
- /// @}
-
private:
/// The ordered list of actions made so far.
SmallVector<std::unique_ptr<TypePromotionAction>, 16> Actions;
@@ -3281,13 +3277,6 @@ Value *TypePromotionTransaction::createZExt(Instruction *Inst, Value *Opnd,
return Val;
}
-void TypePromotionTransaction::moveBefore(Instruction *Inst,
- Instruction *Before) {
- Actions.push_back(
- std::make_unique<TypePromotionTransaction::InstructionMoveBefore>(
- Inst, Before));
-}
-
TypePromotionTransaction::ConstRestorationPt
TypePromotionTransaction::getRestorationPoint() const {
return !Actions.empty() ? Actions.back().get() : nullptr;