diff options
author | Daniel Sanders <daniel_l_sanders@apple.com> | 2018-10-04 18:44:58 +0000 |
---|---|---|
committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2018-10-04 18:44:58 +0000 |
commit | a05c7583c96c38d2bb5f0fdd1cc084d30deb1eff (patch) | |
tree | 50bfd0993fb1563a3e61445abf6076a2c35d5efc /lldb/packages/Python/lldbsuite/test | |
parent | 2cf1561f1a6e3c293b51dd7e1a433cacda6ecfc6 (diff) | |
download | bcm5719-llvm-a05c7583c96c38d2bb5f0fdd1cc084d30deb1eff.tar.gz bcm5719-llvm-a05c7583c96c38d2bb5f0fdd1cc084d30deb1eff.zip |
[globalisel][combine] Improve the truncate placement for the extending-loads combine
This brings the extending loads patch back to the original intent but minus the
PHI bug and with another small improvement to de-dupe truncates that are
inserted into the same block.
The truncates are sunk to their uses unless this would require inserting before a
phi in which case it sinks to the _beginning_ of the predecessor block for that
path (but no earlier than the def).
The reason for choosing the beginning of the predecessor is that it makes de-duping
multiple truncates in the same block simple, and optimized code is going to run a
scheduler at some point which will likely change the position anyway.
llvm-svn: 343804
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions