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.
19 lines
464 B
YAML
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
|
|
...
|