diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2017-09-17 19:17:09 +0200 |
---|---|---|
committer | Michal Kubecek <mkubecek@suse.cz> | 2017-09-17 19:17:09 +0200 |
commit | b056d381ff63ae3421800a07dd263ce32806d15f (patch) | |
tree | 581d27244593f065883d5660310e0824c174ae58 /gencode.h | |
parent | 181a8055463ca3c7864f0347d809d8125e76d9cd (diff) |
optimizer: replacing unknown value with unknown value is not a no-op
Function vstore() checks if new and old value are the same and if they are,
it replaces the instruction with NOP. We must not do this if both old and
new value are 0 which means "unknown" as in this case, the actual values
(at runtime) can differ so that the instruction cannot be omitted.
An example of a program where this leads to incorrect optimization is shown
in issue #581.
Diffstat (limited to 'gencode.h')
0 files changed, 0 insertions, 0 deletions