commit | d881627d3307ef3379627de4eeb65395867a7b08 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Aug 11 18:14:00 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Aug 11 18:14:00 2010 +0000 |
tree | 7556ddab08a343065e5825b6637d8d97ded5d66b | |
parent | 1d72aeebf95f14cfb3a1c8ce2bb41fd884d9583a [diff] |
Use ISD::ADD instead of ISD::SUB with a negated constant. This avoids trouble if the return type of TD->getPointerSize() is changed to something which doesn't promote to a signed type, and is simpler anyway. Also, use getCopyFromReg instead of getRegister to read a physical register's value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110835 91177308-0d34-0410-b5e6-96231b3b80d8