aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-03-06 10:46:22 +0100
committerNikita Popov <npopov@redhat.com>2023-03-16 10:32:08 +0100
commitbbfb13a5ffbccf1759ca6b75262a3ffdbe20496e (patch)
tree7b86a9e7b80e0b6684cd784606065d471f85c471 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentb293c6280d06f49c5ca7290855911341ab0bdffa (diff)
downloadllvm-bbfb13a5ffbccf1759ca6b75262a3ffdbe20496e.zip
llvm-bbfb13a5ffbccf1759ca6b75262a3ffdbe20496e.tar.gz
llvm-bbfb13a5ffbccf1759ca6b75262a3ffdbe20496e.tar.bz2
[ConstExpr] Remove select constant expression
This removes the select constant expression, as part of https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179. Uses of this expressions have already been removed in advance, so this just removes related infrastructure and updates tests. Differential Revision: https://reviews.llvm.org/D145382
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 51756eb..a368ac3 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -2676,12 +2676,6 @@ void ModuleBitcodeWriter::writeConstants(unsigned FirstVal, unsigned LastVal,
}
break;
}
- case Instruction::Select:
- Code = bitc::CST_CODE_CE_SELECT;
- Record.push_back(VE.getValueID(C->getOperand(0)));
- Record.push_back(VE.getValueID(C->getOperand(1)));
- Record.push_back(VE.getValueID(C->getOperand(2)));
- break;
case Instruction::ExtractElement:
Code = bitc::CST_CODE_CE_EXTRACTELT;
Record.push_back(VE.getTypeID(C->getOperand(0)->getType()));