================
@@ -541,6 +541,9 @@ bool ScalarType::classof(Type type) {
}
bool ScalarType::isValid(FloatType type) {
+ if (type.isF8E4M3FN() || type.isF8E5M2()) {
----------------
IgWod wrote:
nit: Remove braces.
https://github.com/llvm/llvm-project/pull/192466