Skip to content

Commit

Permalink
Add escape hatch to avoid demoting float16 operations for unknown arc…
Browse files Browse the repository at this point in the history
…hitectures (#50343)
  • Loading branch information
pchintalapudi committed Jun 30, 2023
1 parent 734cafa commit 934cab6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/llvm-demote-float16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ static bool have_fp16(Function &caller, const Triple &TT) {
return true;
}
}
if (caller.hasFnAttribute("julia.hasfp16")) {
return true;
}
return false;
}

Expand Down

0 comments on commit 934cab6

Please sign in to comment.