[PATCH] D128437: [fastregalloc] Fix bug when there is no register class.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 23 06:14:05 PDT 2022
arsenm requested changes to this revision.
arsenm added inline comments.
This revision now requires changes to proceed.
================
Comment at: llvm/lib/CodeGen/RegAllocFast.cpp:307-310
+ // Follow the default behaviour to return true if there is no
+ // register class for the register. This may happen in gloal ISel.
+ if (!RC)
+ return true;
----------------
This should not happen. This is a bug in x86 globalisel. Virtual registers without a class should not get past the selector. The verifier should catch this
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128437/new/
https://reviews.llvm.org/D128437
More information about the llvm-commits
mailing list