-
Notifications
You must be signed in to change notification settings - Fork 14.1k
AMDGPU/NewPM Port SILoadStoreOptimizer to NPM #106362
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,30 @@ | ||
//===--- SILoadStoreOptimizer.h -------------------------------------------===// | ||
// | ||
// 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_LIB_TARGET_AMDGPU_SILOADSTOREOPTIMIZER_H | ||
#define LLVM_LIB_TARGET_AMDGPU_SILOADSTOREOPTIMIZER_H | ||
|
||
#include "llvm/CodeGen/MachinePassManager.h" | ||
|
||
namespace llvm { | ||
|
||
class SILoadStoreOptimizerPass | ||
: public PassInfoMixin<SILoadStoreOptimizerPass> { | ||
public: | ||
PreservedAnalyses run(MachineFunction &MF, | ||
MachineFunctionAnalysisManager &MFAM); | ||
|
||
MachineFunctionProperties getRequiredProperties() { | ||
return MachineFunctionProperties().set( | ||
MachineFunctionProperties::Property::IsSSA); | ||
} | ||
}; | ||
|
||
} // namespace llvm | ||
|
||
#endif // LLVM_LIB_TARGET_AMDGPU_SILOADSTOREOPTIMIZER_H |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# RUN: llc -mtriple=amdgcn -mcpu=gfx1010 -run-pass=si-load-store-opt -verify-machineinstrs -o - %s | FileCheck %s | ||
# RUN: llc -mtriple=amdgcn -mcpu=gfx1010 -passes=si-load-store-opt -verify-machineinstrs -o - %s | FileCheck %s | ||
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. Verify is default when using new pass manager. 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 think the default should be pre and post verify the MIR, and the flag should be interpreted as run after each pass 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. @paperchalice I wonder why the verify is default when using NPM? Shouldn't the behavior be consistent with the legacy PM, at least this early stage? 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. Because verify is no longer a part in pass pipeline when using new pass manager. New pass manager introduces 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. we should match 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.
Now in #106665. |
||
|
||
# The purpose of this test is to make sure we are combining relevant memory | ||
# operations correctly with/without DLC bit. | ||
|
Uh oh!
There was an error while loading. Please reload this page.