[llvm] [AArch64][CodeGen] Fix crash when fptrunc returns fp16 with +nofp attr (PR #81724)

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 03:43:08 PST 2024


================
@@ -25008,6 +25008,16 @@ void AArch64TargetLowering::ReplaceNodeResults(
       Results.push_back(
           LowerToPredicatedOp(SDValue(N, 0), DAG, AArch64ISD::MULHU_PRED));
     return;
+  case ISD::FP_ROUND: {
----------------
davemgreen wrote:

This looks like it is doing something that should be handled by the generic legalizer.

Would it be better to not mark the FP_RUND as custom instead?

https://github.com/llvm/llvm-project/pull/81724


More information about the llvm-commits mailing list