1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py 2; RUN: opt < %s -instsimplify -S | FileCheck %s 3 4define {i32, i32} @poison({i32, i32} %x) { 5; CHECK-LABEL: @poison( 6; CHECK-NEXT: ret { i32, i32 } [[X:%.*]] 7; 8 %v = insertvalue {i32, i32} %x, i32 poison, 0 9 ret {i32, i32} %v 10} 11 12define {i32, i32} @poison2({i32, i32} %x) { 13; CHECK-LABEL: @poison2( 14; CHECK-NEXT: ret { i32, i32 } [[X:%.*]] 15; 16 %elem = extractvalue {i32, i32} %x, 0 17 %v = insertvalue {i32, i32} poison, i32 %elem, 0 18 ret {i32, i32} %v 19} 20