| tag | 2625e3009a2c091bc474beb23569a29237fec9c9 | |
|---|---|---|
| tagger | Bill Wendling <isanbard@gmail.com> | Tue Aug 14 23:53:04 2007 +0000 |
| object | 5c7c72b86bcfc8149d99332ec5ac9c1747b6fa2c |
Creating llvm-gcc-1200-08 branch llvm-svn: 41088
| commit | 5c7c72b86bcfc8149d99332ec5ac9c1747b6fa2c | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Tue Aug 14 15:45:39 2007 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Tue Aug 14 15:45:39 2007 +0000 |
| tree | dde857eefca0655c194c703bf2c773dbd9ff2305 | |
| parent | b381bde5d2a6b086269ffd5a56c4edfdb81f620c [diff] |
When building casts, constant fold with ConstantFoldInstruction instead
of ConstantExpr::getCast. This allows target-data driven constant folding
to happen. In the testcase from PR1602, for example, this results in:
%tmp26 = sub i32 %tmp232425, 1
instead of:
%tmp26 = sub i32 %tmp232425, ptrtoint (i32 (...)** inttoptr (i64 1 to i32 (...)**) to i32)
llvm-svn: 41071