llvm / llvm-project

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

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

Open llvm-beanz opened 1 month ago

llvm-beanz commented 1 month 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 1 month ago

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