Home
last modified time | relevance | path

Searched refs:OldReg (Results 1 – 25 of 35) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyExplicitLocals.cpp238 unsigned OldReg = MI.getOperand(2).getReg(); in runOnMachineFunction() local
239 const TargetRegisterClass *RC = MRI.getRegClass(OldReg); in runOnMachineFunction()
242 if (!MFI.isVRegStackified(OldReg)) { in runOnMachineFunction()
243 unsigned LocalId = getLocalId(Reg2Local, CurLocal, OldReg); in runOnMachineFunction()
270 unsigned OldReg = MI.getOperand(0).getReg(); in runOnMachineFunction() local
271 if (!MFI.isVRegStackified(OldReg)) { in runOnMachineFunction()
272 const TargetRegisterClass *RC = MRI.getRegClass(OldReg); in runOnMachineFunction()
280 if (UseEmpty[TargetRegisterInfo::virtReg2Index(OldReg)]) { in runOnMachineFunction()
288 unsigned LocalId = getLocalId(Reg2Local, CurLocal, OldReg); in runOnMachineFunction()
309 unsigned OldReg = MO.getReg(); in runOnMachineFunction() local
[all …]
DWebAssemblyPeephole.cpp61 static bool MaybeRewriteToDrop(unsigned OldReg, unsigned NewReg, in MaybeRewriteToDrop() argument
65 if (OldReg == NewReg) { in MaybeRewriteToDrop()
67 unsigned NewReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in MaybeRewriteToDrop()
147 unsigned OldReg = MO.getReg(); in runOnMachineFunction() local
150 if (MRI.getRegClass(NewReg) != MRI.getRegClass(OldReg)) in runOnMachineFunction()
153 Changed |= MaybeRewriteToDrop(OldReg, NewReg, MO, MFI, MRI); in runOnMachineFunction()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyPeephole.cpp58 static bool MaybeRewriteToDrop(unsigned OldReg, unsigned NewReg, in MaybeRewriteToDrop() argument
62 if (OldReg == NewReg) { in MaybeRewriteToDrop()
64 unsigned NewReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in MaybeRewriteToDrop()
135 unsigned OldReg = MO.getReg(); in runOnMachineFunction() local
138 Changed |= MaybeRewriteToDrop(OldReg, NewReg, MO, MFI, MRI); in runOnMachineFunction()
156 unsigned OldReg = MO.getReg(); in runOnMachineFunction() local
159 if (MRI.getRegClass(NewReg) != MRI.getRegClass(OldReg)) in runOnMachineFunction()
162 Changed |= MaybeRewriteToDrop(OldReg, NewReg, MO, MFI, MRI); in runOnMachineFunction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DAntiDepBreaker.h60 void UpdateDbgValue(MachineInstr &MI, unsigned OldReg, unsigned NewReg) { in UpdateDbgValue() argument
62 if (MI.getOperand(0).isReg() && MI.getOperand(0).getReg() == OldReg) in UpdateDbgValue()
69 unsigned OldReg, unsigned NewReg) { in UpdateDbgValues() argument
77 UpdateDbgValue(*DbgMI, OldReg, NewReg); in UpdateDbgValues()
DMachineCSE.cpp559 unsigned OldReg = MO.getReg(); in ProcessBlock() local
569 if (MO.isImplicit() && !MO.isDead() && OldReg == NewReg) in ProcessBlock()
570 ImplicitDefs.push_back(OldReg); in ProcessBlock()
572 if (OldReg == NewReg) { in ProcessBlock()
577 assert(TargetRegisterInfo::isVirtualRegister(OldReg) && in ProcessBlock()
581 if (!isProfitableToCSE(NewReg, OldReg, CSMI, MI)) { in ProcessBlock()
590 if (!MRI->constrainRegAttrs(NewReg, OldReg)) { in ProcessBlock()
597 CSEPairs.push_back(std::make_pair(OldReg, NewReg)); in ProcessBlock()
604 unsigned OldReg = CSEPair.first; in ProcessBlock() local
611 MRI->replaceRegWith(OldReg, NewReg); in ProcessBlock()
DLiveRangeEdit.cpp34 LiveInterval &LiveRangeEdit::createEmptyIntervalFrom(unsigned OldReg, in createEmptyIntervalFrom() argument
36 unsigned VReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in createEmptyIntervalFrom()
38 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createEmptyIntervalFrom()
47 LiveInterval &OldLI = LIS.getInterval(OldReg); in createEmptyIntervalFrom()
55 unsigned LiveRangeEdit::createFrom(unsigned OldReg) { in createFrom() argument
56 unsigned VReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in createFrom()
58 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createFrom()
DLiveDebugVariables.h47 void renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx);
52 void splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs,
DOptimizePHIs.cpp179 unsigned OldReg = MI->getOperand(0).getReg(); in OptimizeBB() local
180 if (!MRI->constrainRegClass(SingleValReg, MRI->getRegClass(OldReg))) in OptimizeBB()
183 MRI->replaceRegWith(OldReg, SingleValReg); in OptimizeBB()
DLiveDebugVariables.cpp310 bool splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs,
400 void splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs);
1007 UserValue::splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs, in splitRegister() argument
1015 if (!Loc->isReg() || Loc->getReg() != OldReg) in splitRegister()
1022 void LDVImpl::splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs) { in splitRegister() argument
1024 for (UserValue *UV = lookupVirtReg(OldReg); UV; UV = UV->getNext()) in splitRegister()
1025 DidChange |= UV->splitRegister(OldReg, NewRegs, *LIS); in splitRegister()
1031 UserValue *UV = lookupVirtReg(OldReg); in splitRegister()
1037 splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs, LiveIntervals &LIS) { in splitRegister() argument
1039 static_cast<LDVImpl*>(pImpl)->splitRegister(OldReg, NewRegs); in splitRegister()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DLiveDebugVariables.cpp251 void renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx,
338 void renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx);
341 void splitRegister(unsigned OldReg, ArrayRef<LiveInterval*> NewRegs);
701 renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx, in renameRegister() argument
706 if (!Loc.isReg() || Loc.getReg() != OldReg) in renameRegister()
717 renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx) { in renameRegister() argument
718 UserValue *UV = lookupVirtReg(OldReg); in renameRegister()
724 virtRegToEqClass.erase(OldReg); in renameRegister()
727 UV->renameRegister(OldReg, NewReg, SubIdx, TRI); in renameRegister()
733 renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx) { in renameRegister() argument
[all …]
DLiveDebugVariables.h45 void renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx);
50 void splitRegister(unsigned OldReg, ArrayRef<LiveInterval*> NewRegs);
DAntiDepBreaker.h62 void UpdateDbgValue(MachineInstr *MI, unsigned OldReg, unsigned NewReg) { in UpdateDbgValue() argument
64 if (MI && MI->getOperand(0).isReg() && MI->getOperand(0).getReg() == OldReg) in UpdateDbgValue()
DStackSlotColoring.cpp137 unsigned OldReg, unsigned NewReg);
140 unsigned OldReg, unsigned NewReg);
497 unsigned OldReg, unsigned NewReg) { in PropagateBackward() argument
515 if (Reg == OldReg) { in PropagateBackward()
537 } else if (TRI->regsOverlap(Reg, OldReg)) { in PropagateBackward()
562 unsigned OldReg, unsigned NewReg) { in PropagateForward() argument
577 if (Reg == OldReg) { in PropagateForward()
594 TRI->regsOverlap(Reg, OldReg)) in PropagateForward()
DMachineCSE.cpp429 unsigned OldReg = MO.getReg(); in ProcessBlock() local
431 if (OldReg == NewReg) in ProcessBlock()
434 assert(TargetRegisterInfo::isVirtualRegister(OldReg) && in ProcessBlock()
438 if (!isProfitableToCSE(NewReg, OldReg, CSMI, MI)) { in ProcessBlock()
445 const TargetRegisterClass *OldRC = MRI->getRegClass(OldReg); in ProcessBlock()
451 CSEPairs.push_back(std::make_pair(OldReg, NewReg)); in ProcessBlock()
DMachineSSAUpdater.cpp235 void MachineSSAUpdater::ReplaceRegWith(unsigned OldReg, unsigned NewReg) { in ReplaceRegWith() argument
236 MRI->replaceRegWith(OldReg, NewReg); in ReplaceRegWith()
241 if (I->second == OldReg) in ReplaceRegWith()
DLiveRangeEdit.cpp32 LiveInterval &LiveRangeEdit::createFrom(unsigned OldReg, in createFrom() argument
36 unsigned VReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in createFrom()
38 VRM.setIsSplitFromReg(VReg, VRM.getOriginal(OldReg)); in createFrom()
/external/llvm/lib/CodeGen/
DMachineCSE.cpp539 unsigned OldReg = MO.getReg(); in ProcessBlock() local
549 if (MO.isImplicit() && !MO.isDead() && OldReg == NewReg) in ProcessBlock()
550 ImplicitDefs.push_back(OldReg); in ProcessBlock()
552 if (OldReg == NewReg) { in ProcessBlock()
557 assert(TargetRegisterInfo::isVirtualRegister(OldReg) && in ProcessBlock()
561 if (!isProfitableToCSE(NewReg, OldReg, CSMI, MI)) { in ProcessBlock()
569 const TargetRegisterClass *OldRC = MRI->getRegClass(OldReg); in ProcessBlock()
576 CSEPairs.push_back(std::make_pair(OldReg, NewReg)); in ProcessBlock()
583 unsigned OldReg = CSEPair.first; in ProcessBlock() local
590 MRI->replaceRegWith(OldReg, NewReg); in ProcessBlock()
DLiveDebugVariables.h48 void renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx);
53 void splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs,
DAntiDepBreaker.h58 void UpdateDbgValue(MachineInstr &MI, unsigned OldReg, unsigned NewReg) { in UpdateDbgValue() argument
60 if (MI.getOperand(0).isReg() && MI.getOperand(0).getReg() == OldReg) in UpdateDbgValue()
DOptimizePHIs.cpp170 unsigned OldReg = MI->getOperand(0).getReg(); in OptimizeBB() local
171 if (!MRI->constrainRegClass(SingleValReg, MRI->getRegClass(OldReg))) in OptimizeBB()
174 MRI->replaceRegWith(OldReg, SingleValReg); in OptimizeBB()
DLiveRangeEdit.cpp34 LiveInterval &LiveRangeEdit::createEmptyIntervalFrom(unsigned OldReg) { in createEmptyIntervalFrom() argument
35 unsigned VReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in createEmptyIntervalFrom()
37 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createEmptyIntervalFrom()
43 unsigned LiveRangeEdit::createFrom(unsigned OldReg) { in createFrom() argument
44 unsigned VReg = MRI.createVirtualRegister(MRI.getRegClass(OldReg)); in createFrom()
46 VRM->setIsSplitFromReg(VReg, VRM->getOriginal(OldReg)); in createFrom()
DLiveDebugVariables.cpp352 void splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs);
878 UserValue::splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs, in splitRegister() argument
886 if (!Loc->isReg() || Loc->getReg() != OldReg) in splitRegister()
893 void LDVImpl::splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs) { in splitRegister() argument
895 for (UserValue *UV = lookupVirtReg(OldReg); UV; UV = UV->getNext()) in splitRegister()
896 DidChange |= UV->splitRegister(OldReg, NewRegs, *LIS); in splitRegister()
902 UserValue *UV = lookupVirtReg(OldReg); in splitRegister()
908 splitRegister(unsigned OldReg, ArrayRef<unsigned> NewRegs, LiveIntervals &LIS) { in splitRegister() argument
910 static_cast<LDVImpl*>(pImpl)->splitRegister(OldReg, NewRegs); in splitRegister()
/external/llvm/include/llvm/CodeGen/
DLiveRangeEdit.h168 LiveInterval &createEmptyIntervalFrom(unsigned OldReg);
171 unsigned createFrom(unsigned OldReg);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DLiveRangeEdit.h125 LiveInterval &createEmptyIntervalFrom(unsigned OldReg, bool createSubRanges);
181 unsigned createFrom(unsigned OldReg);
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DMachineSSAUpdater.h106 void ReplaceRegWith(unsigned OldReg, unsigned NewReg);

12