diff options
author | James Molloy <james.molloy@arm.com> | 2015-09-02 17:25:25 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-09-02 17:25:25 +0000 |
commit | 569cea65f0a4ee83c19f6989635f5fab06791f12 (patch) | |
tree | 32d5b3887f4cf0702c7575dc2340477f6759caa0 /llvm/lib/Analysis/InstructionSimplify.cpp | |
parent | 7ddb35e996cb6add6035bdf2b19cf9a33d07d3b7 (diff) | |
download | bcm5719-llvm-569cea65f0a4ee83c19f6989635f5fab06791f12.tar.gz bcm5719-llvm-569cea65f0a4ee83c19f6989635f5fab06791f12.zip |
[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
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
0 files changed, 0 insertions, 0 deletions