Mercurial > hg > Members > tobaru > cbc > CbC_llvm
comparison lib/Target/PowerPC/PPCBranchSelector.cpp @ 100:7d135dc70f03
LLVM 3.9
author | Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Jan 2016 22:53:40 +0900 |
parents | 60c9769439b8 |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
96:6418606d0ead | 100:7d135dc70f03 |
---|---|
89 | 89 |
90 // Measure each MBB and compute a size for the entire function. | 90 // Measure each MBB and compute a size for the entire function. |
91 unsigned FuncSize = 0; | 91 unsigned FuncSize = 0; |
92 for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E; | 92 for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E; |
93 ++MFI) { | 93 ++MFI) { |
94 MachineBasicBlock *MBB = MFI; | 94 MachineBasicBlock *MBB = &*MFI; |
95 | 95 |
96 // The end of the previous block may have extra nops if this block has an | 96 // The end of the previous block may have extra nops if this block has an |
97 // alignment requirement. | 97 // alignment requirement. |
98 if (MBB->getNumber() > 0) { | 98 if (MBB->getNumber() > 0) { |
99 unsigned AlignExtra = GetAlignmentAdjustment(*MBB, FuncSize); | 99 unsigned AlignExtra = GetAlignmentAdjustment(*MBB, FuncSize); |