diff options
| author | Dinesh Dwivedi <dinesh.d@samsung.com> | 2014-06-02 07:24:36 +0000 |
|---|---|---|
| committer | Dinesh Dwivedi <dinesh.d@samsung.com> | 2014-06-02 07:24:36 +0000 |
| commit | 43e127bded3b0173cc0f5b541c785e342edfb4d1 (patch) | |
| tree | 70e66939379c778539d9a2d4931bfbd4100a5814 /llvm/test/Transforms/LoopUnswitch | |
| parent | 1feec4b81fd977f779fbc1031dacbc5a3b4c5a8d (diff) | |
| download | bcm5719-llvm-43e127bded3b0173cc0f5b541c785e342edfb4d1.tar.gz bcm5719-llvm-43e127bded3b0173cc0f5b541c785e342edfb4d1.zip | |
Added inst combine transforms for single bit tests from Chris's note
if ((x & C) == 0) x |= C becomes x |= C
if ((x & C) != 0) x ^= C becomes x &= ~C
if ((x & C) == 0) x ^= C becomes x |= C
if ((x & C) != 0) x &= ~C becomes x &= ~C
if ((x & C) == 0) x &= ~C becomes nothing
Differential Revision: http://reviews.llvm.org/D3777
llvm-svn: 210006
Diffstat (limited to 'llvm/test/Transforms/LoopUnswitch')
0 files changed, 0 insertions, 0 deletions

