commit | d3278bd288aaecd525f931a54f5f2a392f627fd3 | [log] [tgz] |
---|---|---|
author | Maxim Kazantsev <maxim.kazantsev@intel.com> | Tue Jul 12 15:55:33 2016 +0600 |
committer | Maxim Kazantsev <maxim.kazantsev@intel.com> | Tue Jul 12 11:14:02 2016 +0000 |
tree | 20a795e7de9ace6fa695e123fcf7beaf4e9ccbb9 | |
parent | d8f5f56f2dd90e2bcb6d41cb48403320b9eb04b9 [diff] |
Two more patterns for instruction simplifier This patch allows the instruction simplifier to cover two more cases: x = a + b and x = a - b y = x - b y = x + b In both cases y can be replaced with a, if the types of arguments are integral. Change-Id: I4735737f471e31057f1df76ddace5d4d1c79cde6 Test: New tests in 458-checker-instruction-simplification. Signed-off-by: Max Kazantsev <maxim.kazantsev@intel.com>