[llvm] [HLSL] Move FNeg legalization to the DXILLegalization pass (PR #140942)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Wed May 21 11:47:25 PDT 2025


================
@@ -0,0 +1,23 @@
+; RUN: opt -S -passes='dxil-legalize' -mtriple=dxil-pc-shadermodel6.3-library %s | FileCheck %s
+
+define float @negateF(float %x) {
----------------
farzonl wrote:

were there no tests dependent on  the `DXILPrepare` pass for fneg to fsub? I would expect if their were they would be failing now.

https://github.com/llvm/llvm-project/pull/140942


More information about the llvm-commits mailing list