[NewGVN][NFC] Add test for x + poison -> poison

This commit is contained in:
Nuno Lopes 2021-12-30 12:08:07 +00:00
parent 64af9f61c3
commit 72ea6fbc15
1 changed files with 8 additions and 0 deletions

View File

@ -33,3 +33,11 @@ define i64 @simplifyselect(i64 %x, i64 %y, i1 %c1, i1 %c2, i1 %zzz) {
%r = add i64 %r1, %r2_eq2
ret i64 %r
}
define i8 @simplify_add_poison(i8 %x) {
; CHECK-LABEL: @simplify_add_poison(
; CHECK-NEXT: ret i8 poison
;
%r = add i8 poison, %x
ret i8 %r
}