mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
Make helper functions static. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245549 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa1aef3608
commit
42c100ad7e
@ -721,7 +721,7 @@ bool PeepholeOptimizer::findNextSource(unsigned Reg, unsigned SubReg,
|
||||
/// successfully traverse a PHI instruction and find suitable sources coming
|
||||
/// from its edges. By inserting a new PHI, we provide a rewritten PHI def
|
||||
/// suitable to be used in a new COPY instruction.
|
||||
MachineInstr *
|
||||
static MachineInstr *
|
||||
insertPHI(MachineRegisterInfo *MRI, const TargetInstrInfo *TII,
|
||||
const SmallVectorImpl<TargetInstrInfo::RegSubRegPair> &SrcRegs,
|
||||
MachineInstr *OrigPHI) {
|
||||
|
@ -518,7 +518,7 @@ struct EstimatedUnrollCost {
|
||||
/// \returns Optional value, holding the RolledDynamicCost and UnrolledCost. If
|
||||
/// the analysis failed (no benefits expected from the unrolling, or the loop is
|
||||
/// too big to analyze), the returned value is None.
|
||||
Optional<EstimatedUnrollCost>
|
||||
static Optional<EstimatedUnrollCost>
|
||||
analyzeLoopUnrollCost(const Loop *L, unsigned TripCount, DominatorTree &DT,
|
||||
ScalarEvolution &SE, const TargetTransformInfo &TTI,
|
||||
int MaxUnrolledLoopSize) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user