remove wasted space for extra bit copies of CR2 subregs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hal Finkel 2011-12-05 17:55:06 +00:00
parent 2e313caa36
commit c4785181a1

View File

@ -9,7 +9,7 @@ entry:
;CHECK: mfcr r2
;CHECK: lis r0, 1
;CHECK: rlwinm r2, r2, 8, 0, 31
;CHECK: ori r0, r0, 34540
;CHECK: ori r0, r0, 34524
;CHECK: stwx r2, r1, r0
%x = alloca [100000 x i8] ; <[100000 x i8]*> [#uses=1]
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
@ -20,7 +20,7 @@ entry:
return: ; preds = %entry
;CHECK: lis r0, 1
;CHECK: ori r0, r0, 34540
;CHECK: ori r0, r0, 34524
;CHECK: lwzx r2, r1, r0
;CHECK: rlwinm r2, r2, 24, 0, 31
;CHECK: mtcrf 32, r2