[SLP] Add cost model for `llvm.powi.*` intrinsics
[llvm-project.git] / llvm / test / Transforms / InstSimplify / insertvalue.ll
blobcd4612282315241dece84f8e1ebeb049ecfeb435
1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instsimplify -S | FileCheck %s
4 define {i32, i32} @poison({i32, i32} %x) {
5 ; CHECK-LABEL: @poison(
6 ; CHECK-NEXT:    ret { i32, i32 } [[X:%.*]]
8   %v = insertvalue {i32, i32} %x, i32 poison, 0
9   ret {i32, i32} %v
12 define {i32, i32} @poison2({i32, i32} %x) {
13 ; CHECK-LABEL: @poison2(
14 ; CHECK-NEXT:    ret { i32, i32 } [[X:%.*]]
16   %elem = extractvalue {i32, i32} %x, 0
17   %v = insertvalue {i32, i32} poison, i32 %elem, 0
18   ret {i32, i32} %v