commit | bf5a2c6a39f2a98a83f5fb668b8b35156b693471 | [log] [tgz] |
---|---|---|
author | Nadav Rotem <nrotem@apple.com> | Wed Dec 19 07:39:08 2012 +0000 |
committer | Nadav Rotem <nrotem@apple.com> | Wed Dec 19 07:39:08 2012 +0000 |
tree | e14155a54238ff20ca4af3343ad073742a3256d1 | |
parent | af08627af5e72a3f7e75ffacab9fe7b62d196608 [diff] |
After reducing the size of an operation in the DAG we zero-extend the reduced bitwidth op back to the original size. If we reduce ANDs then this can cause an endless loop. This patch changes the ZEXT to ANY_EXTEND if the demanded bits are equal or smaller than the size of the reduced operation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170505 91177308-0d34-0410-b5e6-96231b3b80d8