diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-07-19 22:09:34 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-07-19 22:09:34 +0000 |
| commit | 2d477e59e875d25e8934be3785fcfa507e59fbb2 (patch) | |
| tree | cabe5f7e91698aeacc629d816956be41bf11852e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | |
| parent | f26e1d9fb50ab6db37ce791895d88bfafc0cfcb6 (diff) | |
| download | llvm-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/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions
