| commit | 569cea65f0a4ee83c19f6989635f5fab06791f12 | [log] [tgz] |
|---|---|---|
| author | James Molloy <james.molloy@arm.com> | Wed Sep 02 17:25:25 2015 +0000 |
| committer | James Molloy <james.molloy@arm.com> | Wed Sep 02 17:25:25 2015 +0000 |
| tree | 32d5b3887f4cf0702c7575dc2340477f6759caa0 | |
| parent | 7ddb35e996cb6add6035bdf2b19cf9a33d07d3b7 [diff] |
[ValueTracking] Look through casts when both operands are casts. We only looked through casts when one operand was a constant. We can also look through casts when both operands are non-constant, but both are in fact the same cast type. For example: %1 = icmp ult i8 %a, %b %2 = zext i8 %a to i32 %3 = zext i8 %b to i32 %4 = select i1 %1, i32 %2, i32 %3 llvm-svn: 246678