llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.25k stars 11.66k forks source link

[HLSL] clang-dxc should enable fast-math by default for HLSL #108597

Open llvm-beanz opened 2 weeks ago

llvm-beanz commented 2 weeks ago

HLSL like many GPU languages is a fast-math-by default language. We should have clang-dxc pass down the fast math flags appropriately.

llvm-beanz commented 2 weeks ago

Since most of our test cases use CC1 directly, this change should not be particularly disruptive.