File tree Expand file tree Collapse file tree 7 files changed +3
-28
lines changed Expand file tree Collapse file tree 7 files changed +3
-28
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ Changes to LLVM infrastructure
86
86
* Added the support for `` fmaximum `` and `` fminimum `` in `` atomicrmw `` instruction. The
87
87
comparison is expected to match the behavior of `` llvm.maximum.* `` and
88
88
`` llvm.minimum.* `` respectively.
89
+ * Removed the codegen pass `` finalize-mi-bundles `` . The same functionality is
90
+ still available as an API function `` llvm::finalizeBundles `` .
89
91
90
92
Changes to building LLVM
91
93
------------------------
Original file line number Diff line number Diff line change @@ -438,10 +438,6 @@ LLVM_ABI extern char &UnpackMachineBundlesID;
438
438
LLVM_ABI FunctionPass *
439
439
createUnpackMachineBundles (std::function<bool (const MachineFunction &)> Ftor);
440
440
441
- // / FinalizeMachineBundles - This pass finalize machine instruction
442
- // / bundles (created earlier, e.g. during pre-RA scheduling).
443
- LLVM_ABI extern char &FinalizeMachineBundlesID;
444
-
445
441
// / StackMapLiveness - This pass analyses the register live-out set of
446
442
// / stackmap/patchpoint intrinsics and attaches the calculated information to
447
443
// / the intrinsic for later emission to the StackMap.
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ LLVM_ABI void initializeExpandVariadicsPass(PassRegistry &);
119
119
LLVM_ABI void initializeExternalAAWrapperPassPass (PassRegistry &);
120
120
LLVM_ABI void initializeFEntryInserterLegacyPass (PassRegistry &);
121
121
LLVM_ABI void initializeFinalizeISelPass (PassRegistry &);
122
- LLVM_ABI void initializeFinalizeMachineBundlesPass (PassRegistry &);
123
122
LLVM_ABI void initializeFixIrreduciblePass (PassRegistry &);
124
123
LLVM_ABI void initializeFixupStatepointCallerSavedLegacyPass (PassRegistry &);
125
124
LLVM_ABI void initializeFlattenCFGLegacyPassPass (PassRegistry &);
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
45
45
initializeExpandPostRALegacyPass (Registry);
46
46
initializeFEntryInserterLegacyPass (Registry);
47
47
initializeFinalizeISelPass (Registry);
48
- initializeFinalizeMachineBundlesPass (Registry);
49
48
initializeFixupStatepointCallerSavedLegacyPass (Registry);
50
49
initializeFuncletLayoutPass (Registry);
51
50
initializeGCMachineCodeAnalysisPass (Registry);
Original file line number Diff line number Diff line change @@ -83,27 +83,6 @@ llvm::createUnpackMachineBundles(
83
83
return new UnpackMachineBundles (std::move (Ftor));
84
84
}
85
85
86
- namespace {
87
- class FinalizeMachineBundles : public MachineFunctionPass {
88
- public:
89
- static char ID; // Pass identification
90
- FinalizeMachineBundles () : MachineFunctionPass(ID) {
91
- initializeFinalizeMachineBundlesPass (*PassRegistry::getPassRegistry ());
92
- }
93
-
94
- bool runOnMachineFunction (MachineFunction &MF) override ;
95
- };
96
- } // end anonymous namespace
97
-
98
- char FinalizeMachineBundles::ID = 0 ;
99
- char &llvm::FinalizeMachineBundlesID = FinalizeMachineBundles::ID;
100
- INITIALIZE_PASS (FinalizeMachineBundles, " finalize-mi-bundles" ,
101
- " Finalize machine instruction bundles" , false , false )
102
-
103
- bool FinalizeMachineBundles::runOnMachineFunction(MachineFunction &MF) {
104
- return llvm::finalizeBundles (MF);
105
- }
106
-
107
86
// / Return the first found DebugLoc that has a DILocation, given a range of
108
87
// / instructions. The search range is from FirstMI to LastMI (exclusive). If no
109
88
// / DILocation is found, then an empty location is returned.
Original file line number Diff line number Diff line change @@ -270,5 +270,6 @@ bool R600ExpandSpecialInstrsPass::runOnMachineFunction(MachineFunction &MF) {
270
270
MI.eraseFromParent ();
271
271
}
272
272
}
273
+ finalizeBundles (MF);
273
274
return false ;
274
275
}
Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ void R600PassConfig::addPreSched2() {
138
138
void R600PassConfig::addPreEmitPass () {
139
139
addPass (createR600MachineCFGStructurizerPass ());
140
140
addPass (createR600ExpandSpecialInstrsPass ());
141
- addPass (&FinalizeMachineBundlesID);
142
141
addPass (createR600Packetizer ());
143
142
addPass (createR600ControlFlowFinalizer ());
144
143
}
You can’t perform that action at this time.
0 commit comments