LLVM: skip fcmp with fast-math flags (not implemented yet)
MODIFY
llvm_util/utils.cpp
llvm_util/utils.cpp
@@ -362,11 +362,15 @@ public:
default:
UNREACHABLE();
}
+
+ // TODO: support FP fast-math stuff
+ if (i.getFastMathFlags().any())
+ return error(i);
+
RETURN_IDENTIFIER(make_unique<FCmp>(*int_types[1].get(), value_name(i),
cond, *a, *b));
}
-
RetTy visitSelectInst(llvm::SelectInst &i) {
PARSE_TRIOP();
RETURN_IDENTIFIER(make_unique<Select>(*ty, value_name(i), *a, *b, *c));

LLVM: skip fcmp with fast-math flags (not implemented yet)