[PATCH] D149740: [InlineCost][TargetTransformInfo][AMDGPU] Consider cost of alloca instructions in the caller (1/2)
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 26 07:46:56 PDT 2023
mtrofin accepted this revision.
mtrofin added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/unittests/Analysis/InlineCostTest.cpp:147
+ 10); // 2*InstCost which defaults to 5 + AllocaCost which defaults to 0
+ ASSERT_EQ(GetFeature(InlineCostFeatureIndex::sroa_losses), 0);
+}
----------------
nit: is there something that we can test that's not 0 (to distinguish from "no effect"). Like maybe the total cost?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149740/new/
https://reviews.llvm.org/D149740
More information about the llvm-commits
mailing list