[llvm] c6e96a2 - [DirectX] Update for removal of icmp and fcmp constant expressions
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 12:22:43 PDT 2024
Author: Justin Bogner
Date: 2024-06-04T12:22:07-07:00
New Revision: c6e96a260531ab5b013e62f0af1a6d3846f1c409
URL: https://github.com/llvm/llvm-project/commit/c6e96a260531ab5b013e62f0af1a6d3846f1c409
DIFF: https://github.com/llvm/llvm-project/commit/c6e96a260531ab5b013e62f0af1a6d3846f1c409.diff
LOG: [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.
Added:
Modified:
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp b/llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
index bc7637a3e3def..3433408f05171 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;
More information about the llvm-commits
mailing list