diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-05-04 07:50:05 +0000 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-05-04 07:50:05 +0000 |
commit | 72fe760592bd04dca1f2e5c45f06d03997113ef7 (patch) | |
tree | 23d96fc896af9e3b4ff4a7d4fe45c211c589005c /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 786032c1b764217d003b1fe19013d3e486b626f2 (diff) | |
download | bcm5719-llvm-72fe760592bd04dca1f2e5c45f06d03997113ef7.tar.gz bcm5719-llvm-72fe760592bd04dca1f2e5c45f06d03997113ef7.zip |
[RegUsageInfoCollector] Bugfix for handling of register aliases.
Don't assume the alias of a defined reg is always already in the set.
As the test case in https://bugs.llvm.org/show_bug.cgi?id=36587 discovered,
it is wrong to assume that all the aliases of the defined register in the
*current function* is already present in the UsedPhysRegsMask.
This patch changes this so that any definition in the current function of a
phys-reg always results in all its aliases inserted into the set of defined
registers.
Review: Quentin Colombet
https://reviews.llvm.org/D45157
llvm-svn: 331509
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions