mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-05 19:29:54 +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 &);
|
void initializeSIFoldOperandsPass(PassRegistry &);
|
||||||
extern char &SIFoldOperandsID;
|
extern char &SIFoldOperandsID;
|
||||||
|
|
||||||
|
void initializeSIShrinkInstructionsPass(PassRegistry&);
|
||||||
|
extern char &SIShrinkInstructionsID;
|
||||||
|
|
||||||
void initializeSIFixSGPRCopiesPass(PassRegistry &);
|
void initializeSIFixSGPRCopiesPass(PassRegistry &);
|
||||||
extern char &SIFixSGPRCopiesID;
|
extern char &SIFixSGPRCopiesID;
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ extern "C" void LLVMInitializeAMDGPUTarget() {
|
|||||||
initializeSILowerI1CopiesPass(*PR);
|
initializeSILowerI1CopiesPass(*PR);
|
||||||
initializeSIFixSGPRCopiesPass(*PR);
|
initializeSIFixSGPRCopiesPass(*PR);
|
||||||
initializeSIFoldOperandsPass(*PR);
|
initializeSIFoldOperandsPass(*PR);
|
||||||
|
initializeSIShrinkInstructionsPass(*PR);
|
||||||
initializeSIFixControlFlowLiveIntervalsPass(*PR);
|
initializeSIFixControlFlowLiveIntervalsPass(*PR);
|
||||||
initializeSILoadStoreOptimizerPass(*PR);
|
initializeSILoadStoreOptimizerPass(*PR);
|
||||||
initializeAMDGPUAnnotateKernelFeaturesPass(*PR);
|
initializeAMDGPUAnnotateKernelFeaturesPass(*PR);
|
||||||
|
@ -31,10 +31,6 @@ STATISTIC(NumInstructionsShrunk,
|
|||||||
STATISTIC(NumLiteralConstantsFolded,
|
STATISTIC(NumLiteralConstantsFolded,
|
||||||
"Number of literal constants folded into 32-bit instructions.");
|
"Number of literal constants folded into 32-bit instructions.");
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
void initializeSIShrinkInstructionsPass(PassRegistry&);
|
|
||||||
}
|
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@ -61,10 +57,8 @@ public:
|
|||||||
|
|
||||||
} // End anonymous namespace.
|
} // End anonymous namespace.
|
||||||
|
|
||||||
INITIALIZE_PASS_BEGIN(SIShrinkInstructions, DEBUG_TYPE,
|
INITIALIZE_PASS(SIShrinkInstructions, DEBUG_TYPE,
|
||||||
"SI Lower il Copies", false, false)
|
"SI Shrink Instructions", false, false)
|
||||||
INITIALIZE_PASS_END(SIShrinkInstructions, DEBUG_TYPE,
|
|
||||||
"SI Lower il Copies", false, false)
|
|
||||||
|
|
||||||
char SIShrinkInstructions::ID = 0;
|
char SIShrinkInstructions::ID = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user