Due to the current use in the SystemZ backend of MVT::Untyped, the list-ilp scheduler will crash when it does look ups like
TLI->getRepRegClassFor(VT)->getID();
This patch adds checks for MVT::Untyped in the places needed to avoid compiler crashes resulting when VT is Untyped.
Discussion on https://bugs.llvm.org//show_bug.cgi?id=32723. (This was posted on llvm-commits last week also without reply)