OSDN Git Service

Replace only loads matching the store type.
authorNicolas Capens <capn@google.com>
Tue, 25 Jul 2017 17:24:40 +0000 (13:24 -0400)
committerNicolas Capens <nicolascapens@google.com>
Wed, 26 Jul 2017 19:28:07 +0000 (19:28 +0000)
commit8772202b4bf74c5e8e00da32edc74e147d439f49
treec6a7164f760550e93c1efa16b94ab8387aeb4f12
parentf2f5e962823401ee7a56979e18f0ed37b7bc91c5
Replace only loads matching the store type.

If a load uses the same address as a previous store, we can only
replace it with the store's data when their types match. Also,
stores can only be eliminated when all the loads following them have
been replaced.

Bug swiftshader:48

Change-Id: I5968b256cb295243c30df3598e49015bccb5bff1
Reviewed-on: https://swiftshader-review.googlesource.com/10950
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Reactor/Optimizer.cpp