[mips] Add comment and simplify function.