Skip to content

Commit 940dd0a

Browse files
committed
fix comments
1 parent 04be8b6 commit 940dd0a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4879,8 +4879,7 @@ getLegalRegBank(const MachineOperand *NewOp, const MachineOperand *RootOp,
48794879
InstructionSelector::ComplexRendererFns
48804880
AMDGPUInstructionSelector::selectVOP3PRetHelper(MachineOperand &Root,
48814881
bool IsDOT) const {
4882-
MachineRegisterInfo &MRI =
4883-
Root.getParent()->getParent()->getParent()->getRegInfo();
4882+
MachineRegisterInfo &MRI = Root.getParent()->getMF()->getRegInfo();
48844883
auto Results = selectVOP3PModsImpl(&Root, MRI, IsDOT);
48854884
const MachineOperand *Op = Results.first;
48864885
unsigned Mods = Results.second;

llvm/test/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def have_cxx_shared_library():
473473
print("could not exec llvm-readobj")
474474
return False
475475

476-
readobj_out = readobj_cmd.stdout.read().decode("ascii")
476+
readobj_out = readobj_cmd.stdout.read().decode("utf-8")
477477
readobj_cmd.wait()
478478

479479
regex = re.compile(r"(libc\+\+|libstdc\+\+|msvcp).*\.(so|dylib|dll)")

0 commit comments

Comments
 (0)