aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2024-06-04 12:20:37 -0700
committerJustin Bogner <mail@justinbogner.com>2024-06-04 12:22:07 -0700
commitc6e96a260531ab5b013e62f0af1a6d3846f1c409 (patch)
tree791afc07d5f93ca8e274190bd5cb54bd57a256f2 /llvm
parent534590144f7c7ec34b8e5e95aba3e4f214b074eb (diff)
downloadllvm-c6e96a260531ab5b013e62f0af1a6d3846f1c409.zip
llvm-c6e96a260531ab5b013e62f0af1a6d3846f1c409.tar.gz
llvm-c6e96a260531ab5b013e62f0af1a6d3846f1c409.tar.bz2
[DirectX] Update for removal of icmp and fcmp constant expressions
The icmp and fcmp constant expressions were removed in deab451e7a7f "[IR] Remove support for icmp and fcmp constant expressions (#93038)". Update the DXILBitcodeWriter to stop referencing them.
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
index bc7637a..3433408 100644
--- a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
+++ b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
@@ -2160,14 +2160,6 @@ void DXILBitcodeWriter::writeConstants(unsigned FirstVal, unsigned LastVal,
Record.push_back(VE.getValueID(C->getOperand(1)));
Record.push_back(VE.getValueID(C->getOperand(2)));
break;
- case Instruction::ICmp:
- case Instruction::FCmp:
- Code = bitc::CST_CODE_CE_CMP;
- Record.push_back(getTypeID(C->getOperand(0)->getType()));
- Record.push_back(VE.getValueID(C->getOperand(0)));
- Record.push_back(VE.getValueID(C->getOperand(1)));
- Record.push_back(CE->getPredicate());
- break;
}
} else if (const BlockAddress *BA = dyn_cast<BlockAddress>(C)) {
Code = bitc::CST_CODE_BLOCKADDRESS;