[PATCH] D42697: [GlobalISel] Fix crash due to assuming a COPY src reg has a reg class
Aditya Nandakumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 30 10:35:01 PST 2018
aditya_nandakumar added inline comments.
================
Comment at: lib/CodeGen/GlobalISel/InstructionSelect.cpp:186
+ auto DstRC = MRI.getRegClassOrNull(DstReg);
+ if (SrcReg && SrcRC == DstRC) {
MRI.replaceRegWith(DstReg, SrcReg);
----------------
After ISel, is it at all possible that vregs will have no regclass assigned? The above code assumes that specifically.
Repository:
rL LLVM
https://reviews.llvm.org/D42697
More information about the llvm-commits
mailing list