[PATCH] D157567: PreISelIntrinsicLowering: Check RuntimeLibcalls instead of TLI for memory functions

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 11 00:23:38 PDT 2023


nikic added inline comments.


================
Comment at: llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp:208
 bool PreISelIntrinsicLowering::expandMemIntrinsicUses(Function &F) const {
+  const TargetLowering *TLI = TM.getSubtargetImpl(F)->getTargetLowering();
   Intrinsic::ID ID = F.getIntrinsicID();
----------------
This is using the TLI for the wrong function: It's the one for the intrinsic, rather than the one for the intrinsic caller.


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

https://reviews.llvm.org/D157567



More information about the llvm-commits mailing list