Files
clang-p2996/llvm/test/CodeGen/MIR/Generic/machine-function-isssa-conflict.mir
Dominik Montada d853adee00 [MIR] Fix return value when computed properties conflict with given prop (#109923)
This fixes a test failure when expensive checks are enabled. Use the
correct return value when computing machine function properties resulted
in an error (e.g. when conflicting with explicitly set values).

Without this, the machine verifier would crash even in the presence of
parsing errors which should have gently terminated execution.
2024-09-25 10:47:14 +02:00

15 lines
394 B
YAML

# RUN: not llc -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
# Test that computed properties are not conflicting with explicitly set
# properties
---
# CHECK: error: {{.*}}: TestIsSSAOverrideConflict has explicit property IsSSA, but is not valid SSA
name: TestIsSSAOverrideConflict
isSSA: true
body: |
bb.0:
%0:_(s32) = G_IMPLICIT_DEF
%0:_(s32) = G_IMPLICIT_DEF
...