Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,16 @@ public static void main(String[] args) {

// Then, run the same test with loop peeling disabled, which should
// elide the {BEFORE,AFTER}_LOOP_PEELING compilation phases, causing the
// test to throw an IRViolationException. We then check whether the
// test to throw IRViolationException. We then check whether the
// exception message matches our expectation (that the loop peeling
// phase was not found).
// phase was not found). If IR verification is disabled, this test will
// not throw IRViolationException.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// not throw IRViolationException.
// not throw an IRViolationException.

try {
TestFramework.runWithFlags("-XX:+UnlockDiagnosticVMOptions",
"-XX:LoopPeeling=0");
Asserts.fail("Expected IRViolationException");
String verifyIR = System.getProperty("VerifyIR", "true");
String msg = "Expected IRViolationException when performing IR matching";
Asserts.assertFalse(Boolean.parseBoolean(verifyIR), msg);
} catch (IRViolationException e) {
String info = e.getExceptionInfo();
if (!info.contains("NO compilation output found for this phase")) {
Expand Down