commit | 1b06c71668183c30c54704ed02a0071318295481 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Apr 26 20:18:20 2011 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Apr 26 20:18:20 2011 +0000 |
tree | e88a8f81f79a875a613a784edb65e7a90d7d07bf | |
parent | 31b106d7dd64efee1cebd04a12bbd3a869443f5e [diff] |
Transform: "icmp eq (trunc (lshr(X, cst1)), cst" to "icmp (and X, mask), cst" when X has multiple uses. This is useful for exposing secondary optimizations, but the X86 backend isn't ready for this when X has a single use. For example, this can disable load folding. This is inching towards resolving PR6627. llvm-svn: 130238