diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-30 07:30:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-30 07:30:20 +0000 |
commit | 0284628e8eee8a68263ff06f586e6171b2ecbce7 (patch) | |
tree | 7e97f42ef0f669b8d74c29aa69626abbf44dd82b /lib/Bytecode/Reader/Reader.cpp | |
parent | a7a5cc889c9c5bc4f70ef40d87fce365c042a3a2 (diff) |
Fix several bugs in 'op x, imm' handling. Foremost is that we now emit
addi r3, r3, -1
instead of
addi r3, r3, 1
for 'sub int X, 1'.
Secondarily, this fixes several cases where we could crash given an unsigned
constant. And fixes a couple of minor missed optimization cases, such as
xor X, ~0U -> not X
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.cpp')
0 files changed, 0 insertions, 0 deletions