Home
last modified time | relevance | path

Searched refs:SingleValReg (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/llvm/lib/CodeGen/
DOptimizePHIs.cpp59 bool IsSingleValuePHICycle(MachineInstr *MI, unsigned &SingleValReg,
98 unsigned &SingleValReg, in IsSingleValuePHICycle() argument
129 if (!IsSingleValuePHICycle(SrcMI, SingleValReg, PHIsInCycle)) in IsSingleValuePHICycle()
133 if (SingleValReg != 0 && SingleValReg != SrcReg) in IsSingleValuePHICycle()
135 SingleValReg = SrcReg; in IsSingleValuePHICycle()
176 unsigned SingleValReg = 0; in OptimizeBB() local
178 if (IsSingleValuePHICycle(MI, SingleValReg, PHIsInCycle) && in OptimizeBB()
179 SingleValReg != 0) { in OptimizeBB()
181 if (!MRI->constrainRegClass(SingleValReg, MRI->getRegClass(OldReg))) in OptimizeBB()
184 MRI->replaceRegWith(OldReg, SingleValReg); in OptimizeBB()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DOptimizePHIs.cpp59 bool IsSingleValuePHICycle(MachineInstr *MI, unsigned &SingleValReg,
98 unsigned &SingleValReg, in IsSingleValuePHICycle() argument
129 if (!IsSingleValuePHICycle(SrcMI, SingleValReg, PHIsInCycle)) in IsSingleValuePHICycle()
133 if (SingleValReg != 0 && SingleValReg != SrcReg) in IsSingleValuePHICycle()
135 SingleValReg = SrcReg; in IsSingleValuePHICycle()
176 unsigned SingleValReg = 0; in OptimizeBB() local
178 if (IsSingleValuePHICycle(MI, SingleValReg, PHIsInCycle) && in OptimizeBB()
179 SingleValReg != 0) { in OptimizeBB()
181 if (!MRI->constrainRegClass(SingleValReg, MRI->getRegClass(OldReg))) in OptimizeBB()
184 MRI->replaceRegWith(OldReg, SingleValReg); in OptimizeBB()
[all …]
/external/llvm/lib/CodeGen/
DOptimizePHIs.cpp53 bool IsSingleValuePHICycle(MachineInstr *MI, unsigned &SingleValReg,
89 unsigned &SingleValReg, in IsSingleValuePHICycle() argument
119 if (!IsSingleValuePHICycle(SrcMI, SingleValReg, PHIsInCycle)) in IsSingleValuePHICycle()
123 if (SingleValReg != 0) in IsSingleValuePHICycle()
125 SingleValReg = SrcReg; in IsSingleValuePHICycle()
166 unsigned SingleValReg = 0; in OptimizeBB() local
168 if (IsSingleValuePHICycle(MI, SingleValReg, PHIsInCycle) && in OptimizeBB()
169 SingleValReg != 0) { in OptimizeBB()
171 if (!MRI->constrainRegClass(SingleValReg, MRI->getRegClass(OldReg))) in OptimizeBB()
174 MRI->replaceRegWith(OldReg, SingleValReg); in OptimizeBB()