aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorMichael Zuckerman <Michael.zuckerman@intel.com>2017-01-18 09:31:13 +0000
committerMichael Zuckerman <Michael.zuckerman@intel.com>2017-01-18 09:31:13 +0000
commit0c0240ce849076009e38fd29b8c42fb27b451db4 (patch)
tree78fff9c2024c20cb491cff9df9ba2d9c93051e08 /llvm/lib/Object/ELFObjectFile.cpp
parent03c5e69d07b97dd650352aeeeec1af383acc41ac (diff)
downloadllvm-0c0240ce849076009e38fd29b8c42fb27b451db4.zip
llvm-0c0240ce849076009e38fd29b8c42fb27b451db4.tar.gz
llvm-0c0240ce849076009e38fd29b8c42fb27b451db4.tar.bz2
[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 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions