-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[NewPM][Hexagon] Add HexagonPassRegistry.def #86244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//===- HexagonPassRegistry.def - Registry of Hexagon passes -----*- C++--*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This file is used as the registry of passes that are part of the | ||
// Hexagon backend. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
// NOTE: NO INCLUDE GUARD DESIRED! | ||
|
||
#ifndef LOOP_PASS | ||
#define LOOP_PASS(NAME, CREATE_PASS) | ||
#endif | ||
LOOP_PASS("hexagon-loop-idiom", HexagonLoopIdiomRecognitionPass()) | ||
LOOP_PASS("hexagon-vlcr", HexagonVectorLoopCarriedReusePass()) | ||
#undef LOOP_PASS |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
; RUN: opt -S -hexagon-loop-idiom < %s | opt -S -passes='loop(loop-deletion),gvn' | ||
; RUN: opt -mtriple hexagon-- -S -passes='loop(hexagon-loop-idiom,loop-deletion),gvn' | ||
; REQUIRES: asserts | ||
|
||
; This tests that the HexagonLoopIdiom pass does not mark LCSSA information | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is an issue. the new PM loop infra assumes that loops are always in LCSSA form. either the pass needs to ensure the loops are in LCSSA form, or perhaps it can just call a helper method There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll push a patch to make sure LCSSA form is preserved. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
; RUN: opt -march=hexagon -hexagon-loop-idiom -S < %s | FileCheck %s | ||
; RUN: opt -march=hexagon -p hexagon-loop-idiom -S < %s | FileCheck %s | ||
; REQUIRES: asserts | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. Please remove REQUIRES. |
||
; | ||
; Check for sane output, this used to crash. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this REQUIRES doesn't make sense, we should run it under all configurations...
same for the other tests here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this test should be run under all configurations. REQUIRES should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, but should be done in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll push a patch to remove REQUIRES.