Skip to content

Commit 350b847

Browse files
committed
Review comments
1 parent bfab873 commit 350b847

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/utils/TableGen/DecoderEmitter.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ void DecoderTableBuilder::emitSoftFailTableEntry(unsigned EncodingID) const {
11311131
TableInfo.Table.insertOpcode(OPC_SoftFail);
11321132
TableInfo.Table.insertULEB128(PositiveMask.getZExtValue());
11331133
TableInfo.Table.insertULEB128(NegativeMask.getZExtValue());
1134-
TableInfo.HasCheckPredicate = true;
1134+
TableInfo.HasSoftFail = true;
11351135
}
11361136

11371137
// Emits table entries to decode the singleton.
@@ -1182,8 +1182,7 @@ void DecoderTableBuilder::emitSingletonTableEntry(
11821182
const Record *InstDef = Encodings[EncodingID].getInstruction()->TheDef;
11831183
TableInfo.Table.insertULEB128(Target.getInstrIntValue(InstDef));
11841184
TableInfo.Table.insertULEB128(DecoderIndex);
1185-
if (DecoderOp == OPC_TryDecode)
1186-
TableInfo.HasTryDecode = true;
1185+
TableInfo.HasTryDecode |= DecoderOp == OPC_TryDecode;
11871186
}
11881187

11891188
std::unique_ptr<Filter>

0 commit comments

Comments
 (0)