Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: everx-labs/TVM-Compiler
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 60c4d3c9814545ed8025812ef5f83ccde46d75e8
Choose a base ref
..
head repository: everx-labs/TVM-Compiler
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cfb7c1d841cfd926dd7691a7f0194d7315b3adbb
Choose a head ref
Showing with 10 additions and 2 deletions.
  1. +10 −2 llvm/lib/Target/TVM/TVMStack.cpp
12 changes: 10 additions & 2 deletions llvm/lib/Target/TVM/TVMStack.cpp
Original file line number Diff line number Diff line change
@@ -283,11 +283,19 @@ void Stack::dump() const {
#endif

void Stack::printElement(raw_ostream &OS, const StackVreg &Vreg) const {
if (Vreg.VirtReg == TVMFunctionInfo::UnusedReg ||
Vreg.VirtReg >= TRI->getNumRegs()) {
if (Vreg.VirtReg == TVMFunctionInfo::UnusedReg) {
OS << "x";
return;
}
unsigned Reg = Vreg.VirtReg;
if (Reg &&
!TargetRegisterInfo::isStackSlot(Reg) &&
!TargetRegisterInfo::isVirtualRegister(Reg) &&
TRI &&
Reg >= TRI->getNumRegs()) {
OS << "?";
return;
}
OS << printReg(Vreg.VirtReg, TRI, 0, MRI);
if (Vreg.DbgVar) {
OS << "(" << Vreg.DbgVar->getName() << ")";