Details
- Reviewers
tra - Commits
- rG806b74b0de6e: [HIP] clang should pass `-mno-amdgpu-ieee` to -cc1
Diff Detail
Event Timeline
clang should pass -mno-amdgpu-ieee to -cc1
It would be useful to have some details on why we should pass that option.
clang/test/Driver/hip-options.hip | ||
---|---|---|
133 | Nit: Both lines could be collapsed into matching "-m{{(no-)?}}amdgpu-ieee" Either way is fine. | |
137–138 | This looks odd. If clang invocation with -no-mamdgpu-ieee happens to be before the invocation with -mamdgpu-ieee, then the NEG-NOT will not succeed. Do I understand it correctly that the idea here is to make sure that only -mno-amdgpu-ieee is ever passed to cc1? The -NOT check I'd do in a separate RUN. |
-mamdgpu-ieee was introduced by https://reviews.llvm.org/D77013 but I forgot to let clang driver pass it to clang -cc1. Recently we found that.
clang/test/Driver/hip-options.hip | ||
---|---|---|
133 | will do | |
137–138 | The -NEG check is supposed to be a separate run. I will add a separate run for it and remove -DAG |
Nit: Both lines could be collapsed into matching "-m{{(no-)?}}amdgpu-ieee" Either way is fine.