diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-27 21:54:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-27 21:54:23 +0000 |
commit | d2f9ee9ea7b08c23a8742b6a53dd78a20233adc0 (patch) | |
tree | fc3c13193c3f3f95f83ba3db39de4e087fee1f23 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 00ef5047974e362229dd822716d52651c3db4f9a (diff) |
Codegen cond&cond with two branches. This compiles (f.e.) PowerPC/and-branch.ll to:
cmpwi cr0, r4, 4
bgt cr0, LBB1_2 ;UnifiedReturnBlock
LBB1_3: ;entry
cmplwi cr0, r3, 0
bne cr0, LBB1_2 ;UnifiedReturnBlock
instead of:
cmpwi cr7, r4, 4
mfcr r2
addic r4, r3, -1
subfe r3, r4, r3
rlwinm r2, r2, 30, 31, 31
or r2, r2, r3
cmplwi cr0, r2, 0
bne cr0, LBB1_2 ;UnifiedReturnBlock
LBB1_1: ;cond_true
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions