[PATCH] D130370: [llvm] Always use Constant for FP_ROUND ISD Nodes
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 15:14:53 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:20899
NewValue = DAG.getNode(AArch64ISD::FP_ROUND_MERGE_PASSTHRU, DL, TruncVT, Pg,
- NewValue, DAG.getTargetConstant(0, DL, MVT::i64),
+ NewValue, DAG.getIntPtrConstant(0, DL),
DAG.getUNDEF(TruncVT));
----------------
Is there any real reason that FP_ROUND_MERGE_PASSTHRU even needs this flag? Or is just because LowerToPredicatedOp doesn't know to drop it?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130370/new/
https://reviews.llvm.org/D130370
More information about the llvm-commits
mailing list