[HIP] Pass -fno-hip-fp32-correctly-rounded-divide-sqrt to clang -cc1
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 3 Jul 2023 18:51:51 +0000 (14:51 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 3 Jul 2023 20:19:25 +0000 (16:19 -0400)
commit4eef528853418fd72bffbb139d953520bb7b4c73
treeccc38c48dc6e8d8464e82790a1b1d5d4a1872229
parentfac4857bc10b78b95822b5127c0c5a4b759aa462
[HIP] Pass -fno-hip-fp32-correctly-rounded-divide-sqrt to clang -cc1

-fno-hip-fp32-correctly-rounded-divide-sqrt affects clang codegen
and should be passed to clang -cc1 by clang driver.

Fixes: https://github.com/llvm/llvm-project/issues/63653

Reviewed by: Matt Arsenault

Differential Revision: https://reviews.llvm.org/D154385
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/hip-options.hip