llvm / llvm/llvm-project

[HLSL] `-Gis` flag doesn't work

Open
#194,079 0 comments 0 reactions 0 assignees View on GitHub
HLSL
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

https://hlsl.godbolt.org/z/16oTzKsWc

Currently enabling `-Gis` in clang doesn't produce the intended behavior. In the link above, we don't expect `reassoc nnan ninf nsz arcp afn` flags to be present. Also we are missing `contract` when fast math is enabled.

After this fix, the function `IsFast` located in `DxilOpLowering` can be removed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.