diff options
author | Tim Northover <tnorthover@apple.com> | 2015-02-09 01:21:00 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2015-02-09 01:21:00 +0000 |
commit | 705d2af9e1d409274befa1580d5addea4a25edb9 (patch) | |
tree | 7ce9712a4ea4f499176cee75b149b99546332f87 /llvm/lib/Transforms/Utils/DemoteRegToStack.cpp | |
parent | 854c927de5caf761d85a89cfef4acbafd51bf01b (diff) | |
download | llvm-705d2af9e1d409274befa1580d5addea4a25edb9.zip llvm-705d2af9e1d409274befa1580d5addea4a25edb9.tar.gz llvm-705d2af9e1d409274befa1580d5addea4a25edb9.tar.bz2 |
DeadArgElim: fix mismatch in accounting of array return types.
Some parts of DeadArgElim were only considering the individual fields
of StructTypes separately, but others (where insertvalue &
extractvalue instructions occur) also looked into ArrayTypes.
This one is an actual bug; the mismatch can lead to an argument being
considered used by a return sub-value that isn't being tracked (and
hence is dead by default). It then gets incorrectly eliminated.
llvm-svn: 228559
Diffstat (limited to 'llvm/lib/Transforms/Utils/DemoteRegToStack.cpp')
0 files changed, 0 insertions, 0 deletions