aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/TargetData.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-11 18:14:00 +0000
committerDan Gohman <gohman@apple.com>2010-08-11 18:14:00 +0000
commitd881627d3307ef3379627de4eeb65395867a7b08 (patch)
tree7556ddab08a343065e5825b6637d8d97ded5d66b /lib/Target/TargetData.cpp
parent1d72aeebf95f14cfb3a1c8ce2bb41fd884d9583a (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
Diffstat (limited to 'lib/Target/TargetData.cpp')
0 files changed, 0 insertions, 0 deletions