@@ -432,10 +432,10 @@ exit:
432
432
; In the function below, the condition %c.1 results in a range [7, 6), which
433
433
; can be used as a widening bound. It does not fully contain the range we get
434
434
; from combining it with the information from %tmp12.
435
- define void @foo (ptr %arg ) {
435
+ define void @foo (ptr %arg , i8 %x ) {
436
436
; SCCP-LABEL: @foo(
437
437
; SCCP-NEXT: bb:
438
- ; SCCP-NEXT: [[TMP:%.*]] = zext i8 undef to i32
438
+ ; SCCP-NEXT: [[TMP:%.*]] = zext i8 [[X:%.*]] to i32
439
439
; SCCP-NEXT: [[TMP2:%.*]] = load i64, ptr [[ARG:%.*]], align 8
440
440
; SCCP-NEXT: switch i32 [[TMP]], label [[BB20:%.*]] [
441
441
; SCCP-NEXT: i32 1, label [[BB3:%.*]]
@@ -472,7 +472,7 @@ define void @foo(ptr %arg) {
472
472
;
473
473
; IPSCCP-LABEL: @foo(
474
474
; IPSCCP-NEXT: bb:
475
- ; IPSCCP-NEXT: [[TMP:%.*]] = zext i8 undef to i32
475
+ ; IPSCCP-NEXT: [[TMP:%.*]] = zext i8 [[X:%.*]] to i32
476
476
; IPSCCP-NEXT: [[TMP2:%.*]] = load i64, ptr [[ARG:%.*]], align 8
477
477
; IPSCCP-NEXT: switch i32 [[TMP]], label [[BB20:%.*]] [
478
478
; IPSCCP-NEXT: i32 1, label [[BB3:%.*]]
@@ -508,7 +508,7 @@ define void @foo(ptr %arg) {
508
508
; IPSCCP-NEXT: ret void
509
509
;
510
510
bb:
511
- %tmp = zext i8 undef to i32
511
+ %tmp = zext i8 %x to i32
512
512
%tmp2 = load i64 , ptr %arg , align 8
513
513
switch i32 %tmp , label %bb20 [
514
514
i32 1 , label %bb3
0 commit comments