[PATCH] D76265: [PowerPC] add IR level isFMAFasterThanFMulAndFAdd - NFC

qshanz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 17 23:13:27 PDT 2020


steven.zhang added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:15304
                                                    EVT VT) const {
   VT = VT.getScalarType();
 
----------------
Don't get the scalar type as the parameter of "Ty" in IR version is the type of the function.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:15306
 
   if (!VT.isSimple())
     return false;
----------------
You don't need this check any more as you don't call the getSimpleVT now.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76265





More information about the llvm-commits mailing list