OSDN Git Service

Don't eliminate wide store followed by a narrow one.
authorNicolas Capens <capn@google.com>
Tue, 25 Jul 2017 16:57:12 +0000 (12:57 -0400)
committerNicolas Capens <nicolascapens@google.com>
Wed, 26 Jul 2017 19:27:28 +0000 (19:27 +0000)
commitf2f5e962823401ee7a56979e18f0ed37b7bc91c5
treeea25754d3c56bf6d9c89ba579d148cfb50ea2158
parent709f69b2fc94c0d42f1df587703123dc0a37a8e9
Don't eliminate wide store followed by a narrow one.

If the previous store operation is wider than the next one, we can't
eliminate it because there could be a subsequent wide load reading its
non-overwritten data.

Bug swiftshader:48

Change-Id: Iccb9cabad8ab8503140061ec4ce711a2959de33d
Reviewed-on: https://swiftshader-review.googlesource.com/10948
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