Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi committed Mar 3, 2023
1 parent d717fa7 commit fe0600d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ static size_t getFunctionWeight(const Function &F)
return weight;
}


static bool verify_partitioning(const SmallVectorImpl<Partition> &partitions, const Module &M) {
//Inline to fool gcc into not complaining about unused function when asserts are disabled
static inline bool verify_partitioning(const SmallVectorImpl<Partition> &partitions, const Module &M) {
StringMap<uint32_t> GVNames;
bool bad = false;
for (uint32_t i = 0; i < partitions.size(); i++) {
Expand Down
3 changes: 2 additions & 1 deletion src/llvm-multiversioning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ static uint32_t collect_func_info(Function &F, bool &has_veccall)
}
// Check for BFloat16 when they are added to julia can be done here
}
if (has_veccall && (flag & JL_TARGET_CLONE_SIMD) && (flag & JL_TARGET_CLONE_MATH)) {
uint32_t veccall_flags = JL_TARGET_CLONE_SIMD | JL_TARGET_CLONE_MATH | JL_TARGET_CLONE_CPU | JL_TARGET_CLONE_FLOAT16;
if (has_veccall && (flag & veccall_flags) == veccall_flags) {
return flag;
}
}
Expand Down

0 comments on commit fe0600d

Please sign in to comment.