Files
clang-p2996/llvm/test/CodeGen/MIR/Generic/machine-function-nophis-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

19 lines
464 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: {{.*}}: TestNoPhisOverrideConflict has explicit property NoPhi, but contains at least one PHI
name: TestNoPhisOverrideConflict
noPhis: true
tracksRegLiveness: true
body: |
bb.0:
%0:_(s32) = G_IMPLICIT_DEF
bb.1:
%1:_(s32) = PHI %0, %bb.0, %1, %bb.1
G_BR %bb.1
...