mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 14:20:33 +00:00
AMDGPU: Properly initialize SIShrinkInstructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bec2df684f
commit
dad6f6f388
@ -61,6 +61,9 @@ extern char &AMDGPUAnnotateKernelFeaturesID;
|
||||
void initializeSIFoldOperandsPass(PassRegistry &);
|
||||
extern char &SIFoldOperandsID;
|
||||
|
||||
void initializeSIShrinkInstructionsPass(PassRegistry&);
|
||||
extern char &SIShrinkInstructionsID;
|
||||
|
||||
void initializeSIFixSGPRCopiesPass(PassRegistry &);
|
||||
extern char &SIFixSGPRCopiesID;
|
||||
|
||||
|
@ -49,6 +49,7 @@ extern "C" void LLVMInitializeAMDGPUTarget() {
|
||||
initializeSILowerI1CopiesPass(*PR);
|
||||
initializeSIFixSGPRCopiesPass(*PR);
|
||||
initializeSIFoldOperandsPass(*PR);
|
||||
initializeSIShrinkInstructionsPass(*PR);
|
||||
initializeSIFixControlFlowLiveIntervalsPass(*PR);
|
||||
initializeSILoadStoreOptimizerPass(*PR);
|
||||
initializeAMDGPUAnnotateKernelFeaturesPass(*PR);
|
||||
|
@ -31,10 +31,6 @@ STATISTIC(NumInstructionsShrunk,
|
||||
STATISTIC(NumLiteralConstantsFolded,
|
||||
"Number of literal constants folded into 32-bit instructions.");
|
||||
|
||||
namespace llvm {
|
||||
void initializeSIShrinkInstructionsPass(PassRegistry&);
|
||||
}
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
@ -61,10 +57,8 @@ public:
|
||||
|
||||
} // End anonymous namespace.
|
||||
|
||||
INITIALIZE_PASS_BEGIN(SIShrinkInstructions, DEBUG_TYPE,
|
||||
"SI Lower il Copies", false, false)
|
||||
INITIALIZE_PASS_END(SIShrinkInstructions, DEBUG_TYPE,
|
||||
"SI Lower il Copies", false, false)
|
||||
INITIALIZE_PASS(SIShrinkInstructions, DEBUG_TYPE,
|
||||
"SI Shrink Instructions", false, false)
|
||||
|
||||
char SIShrinkInstructions::ID = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user