mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
Hexagon: Make helper functions static.
llvm-svn: 182588
This commit is contained in:
parent
0d26c557b0
commit
95f8445d29
@ -219,8 +219,9 @@ static void removeKillInfo(MachineInstr *MI, unsigned RegNotKilled) {
|
||||
|
||||
/// isUnsafeToMoveAccross - Returns true if it is unsafe to move a copy
|
||||
/// instruction from \p UseReg to \p DestReg over the instruction \p I.
|
||||
bool isUnsafeToMoveAccross(MachineInstr *I, unsigned UseReg, unsigned DestReg,
|
||||
const TargetRegisterInfo *TRI) {
|
||||
static bool isUnsafeToMoveAccross(MachineInstr *I, unsigned UseReg,
|
||||
unsigned DestReg,
|
||||
const TargetRegisterInfo *TRI) {
|
||||
return (UseReg && (I->modifiesRegister(UseReg, TRI))) ||
|
||||
I->modifiesRegister(DestReg, TRI) ||
|
||||
I->readsRegister(DestReg, TRI) ||
|
||||
|
@ -838,7 +838,8 @@ bool HexagonPacketizerList::RestrictingDepExistInPacket (MachineInstr* MI,
|
||||
|
||||
|
||||
/// Gets the predicate register of a predicated instruction.
|
||||
unsigned getPredicatedRegister(MachineInstr *MI, const HexagonInstrInfo *QII) {
|
||||
static unsigned getPredicatedRegister(MachineInstr *MI,
|
||||
const HexagonInstrInfo *QII) {
|
||||
/// We use the following rule: The first predicate register that is a use is
|
||||
/// the predicate register of a predicated instruction.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user