1 ; This entire chain of computation should be optimized away, but
2 ; wasn't because the two multiplies were not detected as being identical.
4 ; RUN: if as < %s | opt -gcse -instcombine -dce | dis | grep sub
9 implementation ; Functions:
11 uint "vnum_test4"(uint* %data) {
12 %reg1101 = load uint* %data, uint 1
13 %reg1111 = load uint* %data, uint 3
14 %reg109 = mul uint %reg1101, %reg1111
15 %reg108 = mul uint %reg1111, %reg1101
16 %reg121 = sub uint %reg108, %reg109