diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2017-05-10 06:33:43 +0000 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2017-05-10 06:33:43 +0000 |
commit | af14a21e5016bb67d895f050762a0006fca7cd0a (patch) | |
tree | 206d798e26cfd2da356ae2157f294438c496b111 /llvm/lib/Support/APInt.cpp | |
parent | 0f7ce83018195e0ed78ccfd866267e8f8eabcf73 (diff) | |
download | llvm-af14a21e5016bb67d895f050762a0006fca7cd0a.zip llvm-af14a21e5016bb67d895f050762a0006fca7cd0a.tar.gz llvm-af14a21e5016bb67d895f050762a0006fca7cd0a.tar.bz2 |
[UnreachableBlockElim] Check return value of constrainRegClass().
Summary:
MachineRegisterInfo::constrainRegClass() can fail if two register classes
don't have a common subclass or if the register class doesn't contain
enough registers. Check the return value before trying to remove Phi nodes,
and if we can't constrain, we output a COPY instead of simply replacing
registers.
Reviewers: kparzysz, david2050, wmi
Reviewed By: kparzysz
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D32999
llvm-svn: 302622
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions