[SCCP] Fold constants as we build them whne visiting cast instructions.
authorDavide Italiano <davide@freebsd.org>
Fri, 8 Jul 2016 19:13:40 +0000 (19:13 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 8 Jul 2016 19:13:40 +0000 (19:13 +0000)
commitd555bde59fd05819a2154255c798ead4d35e622a
tree476262bef25bca543c1c6b8cb9834a5510c68153
parentdca9bffa315a4f4b80815af5e15119ac1d122216
[SCCP] Fold constants as we build them whne visiting cast instructions.

This should be slightly more efficient and could avoid spurious overdefined
markings, as Eli pointed out.

Differential Revision:  http://reviews.llvm.org/D22122

llvm-svn: 274905
llvm/lib/Transforms/Scalar/SCCP.cpp
llvm/test/Transforms/SCCP/bitcast.ll [new file with mode: 0644]