commit | d7c4a4a6c048d4174b8795598f50fd76c30731ed | [log] [tgz] |
---|---|---|
author | Nate Begeman <natebegeman@mac.com> | Wed May 11 23:43:56 2005 +0000 |
committer | Nate Begeman <natebegeman@mac.com> | Wed May 11 23:43:56 2005 +0000 |
tree | 85b97af7b609ee67259289a1f11a323be8fade78 | |
parent | a65640edd0d77400e3d9d1e1ae189c44fa0c2e34 [diff] |
Necessary changes to codegen cttz efficiently on PowerPC 1. Teach LegalizeDAG how to better legalize CTTZ if the target doesn't have CTPOP, but does have CTLZ 2. Teach PPC32 how to do sub x, const -> add x, -const for valid consts 3. Teach PPC32 how to do and (xor a, -1) b -> andc b, a 4. Teach PPC32 that ISD::CTLZ -> PPC::CNTLZW git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21880 91177308-0d34-0410-b5e6-96231b3b80d8