[PATCH] D57044: [AArch64] OOptimize floating point materialization

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 31 13:48:37 PST 2019


efriedma added inline comments.


================
Comment at: lib/Target/AArch64/AArch64ISelLowering.cpp:5442
+  // The immediate value will be created with either MOVZ or MOVN.
+  if (!IsLegal && (VT == MVT::f64 || VT == MVT::f32))
+    IsLegal = AArch64_AM::isAnyMOVWMovAlias(ImmInt.getZExtValue(),
----------------
evandro wrote:
> Since `fmov h0, w0` is legal, shouldn't `MVT::f16` be added here too?
Yes, it's possible, but I'm fine handling it in a followup.  We currently don't have an isel pattern to generate that fmov.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57044/new/

https://reviews.llvm.org/D57044





More information about the llvm-commits mailing list