[IPSCCP] Constant fold struct argument/instructions when all the lattice values are...
authorDavide Italiano <davide@freebsd.org>
Thu, 14 Jul 2016 02:51:41 +0000 (02:51 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 14 Jul 2016 02:51:41 +0000 (02:51 +0000)
commit7dac027ed7513f330567f3ae67e70ee13c7e34a5
tree06bc019e1b5c543a9f09dcc3b1089535a49f984d
parent622ef17f5d0423f0d8659f412770060a910904ef
[IPSCCP] Constant fold struct argument/instructions when all the lattice values are constant.

This now should also work with the interprocedural variant of the pass.
Slightly easier now that the yak is shaved.

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

llvm-svn: 275363
llvm/lib/Transforms/Scalar/SCCP.cpp
llvm/test/Transforms/SCCP/ipsccp-basic.ll