commit | e99c66b74fe04aeebeeb1b0c50ed0ea5ba45d371 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Nov 01 17:05:27 2001 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Nov 01 17:05:27 2001 +0000 |
tree | 1f16028393b2a3b0a759a6b4f959fd5667c18e62 | |
parent | 68b07b7c5de181d58b6833defccd6ebb79e689b9 [diff] |
* Add comments for peepholes * Implement new peephole: // Peephole optimize the following instructions: // %t1 = cast {<...>} * %StructPtr to <ty> * // // Into: %t2 = getelementptr {<...>} * %StructPtr, <0, 0, 0, ...> // %t1 = cast <eltype> * %t1 to <ty> * This peephole eliminated 9 evil casts in the health benchmark, and completely turned the addList method around. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1085 91177308-0d34-0410-b5e6-96231b3b80d8