[llvm] [DirectX] fix illegal behavior flag in module flags. (PR #96577)

Chris B via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 15:00:16 PDT 2024


================
@@ -0,0 +1,20 @@
+; RUN: opt -S -dxil-prepare < %s | FileCheck %s
+
+; Make sure behavior flag > 6 is fixed.
+; CHECK-NOT: !{i32 7, !"frame-pointer", i32 2}
----------------
llvm-beanz wrote:

This check doesn't seem correct. The code change here doesn't remove the flag it changes the behavior value. We should check for the updated behavior not check that the old behavior doesn't exist.

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


More information about the llvm-commits mailing list