diff options
| author | Serge Pavlov <sepavloff@gmail.com> | 2022-11-15 12:02:06 +0700 |
|---|---|---|
| committer | Serge Pavlov <sepavloff@gmail.com> | 2022-11-15 15:48:05 +0700 |
| commit | ec893da99080366fed2e4f13a7f0d4d92cf20e9f (patch) | |
| tree | bb19d405162b406406405d548730ed53e05959ce /llvm/lib/CodeGen | |
| parent | b97911c37b84b3591875de813941616c278c429b (diff) | |
| download | llvm-ec893da99080366fed2e4f13a7f0d4d92cf20e9f.zip llvm-ec893da99080366fed2e4f13a7f0d4d92cf20e9f.tar.gz llvm-ec893da99080366fed2e4f13a7f0d4d92cf20e9f.tar.bz2 | |
[GlobalISel] Remove semantic operand of G_IS_FPCLASS
Instruction G_IS_FPCLASS had an operand that represented floating-point
semantics of its first operand. It allowed types that have the same length,
like `bfloat16` and `half`, to be distinguished. Unfortunately, it is
not sufficient, as other operation still cannot distinguish such types.
Solution of this problem must be more general, so now this operand is removed.
Differential Revision: https://reviews.llvm.org/D138004
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index d31d6d3..63c6a15 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -1714,16 +1714,6 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) { report("Incorrect floating-point class set (operand 2)", MI); break; } - const MachineOperand &SemanticsMO = MI->getOperand(3); - if (!SemanticsMO.isImm()) { - report("floating-point semantics (operand 3) must be an immediate", MI); - break; - } - int64_t Semantics = SemanticsMO.getImm(); - if (Semantics < 0 || Semantics > APFloat::S_MaxSemantics) { - report("Incorrect floating-point semantics (operand 3)", MI); - break; - } break; } case TargetOpcode::G_ASSERT_ALIGN: { |
