aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-07-19 22:09:34 +0000
committerSanjay Patel <spatel@rotateright.com>2016-07-19 22:09:34 +0000
commit2d477e59e875d25e8934be3785fcfa507e59fbb2 (patch)
treecabe5f7e91698aeacc629d816956be41bf11852e /lldb/source/Plugins/ScriptInterpreter/Python
parentf26e1d9fb50ab6db37ce791895d88bfafc0cfcb6 (diff)
downloadllvm-2d477e59e875d25e8934be3785fcfa507e59fbb2.zip
llvm-2d477e59e875d25e8934be3785fcfa507e59fbb2.tar.gz
llvm-2d477e59e875d25e8934be3785fcfa507e59fbb2.tar.bz2
[InstCombine] fold add(zext(xor X, C), C) --> sext X when C is INT_MIN in the source type
The pattern may look more obviously like a sext if written as: define i32 @g(i16 %x) { %zext = zext i16 %x to i32 %xor = xor i32 %zext, 32768 %add = add i32 %xor, -32768 ret i32 %add } We already have that fold in visitAdd(). Differential Revision: https://reviews.llvm.org/D22477 llvm-svn: 276035
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions