Skip to content

Commit

Permalink
Increased inlining threshold for Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
mkatliar committed Oct 6, 2024
1 parent 8092ab9 commit 85d47a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bench/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ target_link_libraries(bench-blast-common
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# More aggressive inlining with Clang
target_compile_options(bench-blast-common
PUBLIC "-mllvm" "-inline-threshold=1000"
PUBLIC "-mllvm" "-inline-threshold=4000"
)
endif()
5 changes: 2 additions & 3 deletions include/blast/math/algorithm/Tile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#endif

#include <blast/math/StorageOrder.hpp>

#include <cstdlib>
#include <blast/util/Types.hpp>


namespace blast
Expand Down Expand Up @@ -47,7 +46,7 @@ namespace blast
* @param f_partial functor to call on partial tiles
*/
template <typename ET, StorageOrder SO, typename FF, typename FP, typename Arch>
inline void tile(Arch arch, StorageOrder traversal_order, std::size_t m, std::size_t n, FF&& f_full, FP&& f_partial)
inline void tile(Arch arch, StorageOrder traversal_order, size_t m, size_t n, FF&& f_full, FP&& f_partial)
{
detail::tile<ET, SO>(arch, traversal_order, m, n, f_full, f_partial);
}
Expand Down
2 changes: 0 additions & 2 deletions include/blast/math/algorithm/arch/avx2/Tile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#include <blast/math/Simd.hpp>

#include <cstdlib>


namespace blast :: detail
{
Expand Down

0 comments on commit 85d47a1

Please sign in to comment.