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

Paul Kirth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 10:38:04 PDT 2023


paulkirth added inline comments.


================
Comment at: llvm/test/Transforms/PreISelIntrinsicLowering/X86/load-relative.ll:1
-; RUN: opt -pre-isel-intrinsic-lowering -S -o - %s | FileCheck %s
+; RUN: opt -mtriple=x86_64-pc-linux-gnu -pre-isel-intrinsic-lowering -S -o - %s | FileCheck %s
 
----------------
arsenm wrote:
> paulkirth wrote:
> > Why were `load-relative.ll` and `obj-arc.ll` made x86 specific tests? They seem like they should work on any platform. 
> > 
> > I'm not opposed to the change, but it's unclear to me what this accomplishes.
> The test needs a TargetMachine to query the subtarget. It was weird this didn't have one before
Right, I missed that. Moving this makes total sense. Thanks for the explanation.


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

https://reviews.llvm.org/D157567



More information about the llvm-commits mailing list