[PATCH] D96250: [CostModel] An extending load to illegal type is not free.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 8 03:11:21 PST 2021


dmgreen added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:795
+        if (TLI->isLoadExtLegal(LType, ExtVT, LoadVT) &&
+            DstLT.first == SrcLT.first)
           return 0;
----------------
This is that the type legalization costs are the same? I'm a little surprised that isLoadExtLegal returns true if they are not legal.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96250



More information about the llvm-commits mailing list