Before accessing "getOpcode" thorugh machine instruction, check if the iterator
has reached the end of Machine basic block otherwise we will crash at the
assertion !NodePtr->isKnownSentinel().
The above assertion is hit in "Prologue/Epilogue Insertion & Frame Finalization
pass".
Does it have any difference of codegen between RV32 and RV64? Can we use the same check-prefixes?