diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-04 10:17:16 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-06 08:50:24 +0200 |
| commit | f7940d3f0e7cacd7c88e7385bb351857d8b1adb1 (patch) | |
| tree | 8b7bb0edd61cd6c2bb6fea083cde1403ad1d046b /validation/optim | |
| parent | 0e872d2941a69295e9c77c7c7d35a36daf273a59 (diff) | |
| download | sparse-dev-f7940d3f0e7cacd7c88e7385bb351857d8b1adb1.tar.gz | |
fix size corruption when simplifing 'x != 0' to 'x'
In commit d329775c2 ("simplify 'x != 0' or 'x == 1' to 'x'")
the comparison was optimized away if the operand's size == 1
but this is only valid if the comparison also has a size == 1.
Fix this by restricting this optimization only when both
the comparison instruction and its operand has a size == 1.
Fixes: d329775c2 ("simplify 'x != 0' or 'x == 1' to 'x'")
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim')
0 files changed, 0 insertions, 0 deletions
