diff options
| author | Michael Zuckerman <Michael.zuckerman@intel.com> | 2017-01-18 09:31:13 +0000 |
|---|---|---|
| committer | Michael Zuckerman <Michael.zuckerman@intel.com> | 2017-01-18 09:31:13 +0000 |
| commit | 0c0240ce849076009e38fd29b8c42fb27b451db4 (patch) | |
| tree | 78fff9c2024c20cb491cff9df9ba2d9c93051e08 /lldb/unittests/Core/LogTest.cpp | |
| parent | 03c5e69d07b97dd650352aeeeec1af383acc41ac (diff) | |
| download | bcm5719-llvm-0c0240ce849076009e38fd29b8c42fb27b451db4.tar.gz bcm5719-llvm-0c0240ce849076009e38fd29b8c42fb27b451db4.zip | |
[X86] Improve mul combine for negative multiplayer (2^c - 1)
This patch improves the mul instruction combine function (combineMul)
by adding new layer of logic.
In this patch, we are adding the ability to fold (mul x, -((1 << c) -1))
or (mul x, -((1 << c) +1)) into (neg(X << c) -x) or (neg((x << c) + x) respective.
Differential Revision: https://reviews.llvm.org/D28232
llvm-svn: 292358
Diffstat (limited to 'lldb/unittests/Core/LogTest.cpp')
0 files changed, 0 insertions, 0 deletions

