Skip to content

Commit c6e96a2

Browse files
committed
[DirectX] Update for removal of icmp and fcmp constant expressions
The icmp and fcmp constant expressions were removed in deab451 "[IR] Remove support for icmp and fcmp constant expressions (#93038)". Update the DXILBitcodeWriter to stop referencing them.
1 parent 5345901 commit c6e96a2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,14 +2160,6 @@ void DXILBitcodeWriter::writeConstants(unsigned FirstVal, unsigned LastVal,
21602160
Record.push_back(VE.getValueID(C->getOperand(1)));
21612161
Record.push_back(VE.getValueID(C->getOperand(2)));
21622162
break;
2163-
case Instruction::ICmp:
2164-
case Instruction::FCmp:
2165-
Code = bitc::CST_CODE_CE_CMP;
2166-
Record.push_back(getTypeID(C->getOperand(0)->getType()));
2167-
Record.push_back(VE.getValueID(C->getOperand(0)));
2168-
Record.push_back(VE.getValueID(C->getOperand(1)));
2169-
Record.push_back(CE->getPredicate());
2170-
break;
21712163
}
21722164
} else if (const BlockAddress *BA = dyn_cast<BlockAddress>(C)) {
21732165
Code = bitc::CST_CODE_BLOCKADDRESS;

0 commit comments

Comments
 (0)