Skip to content
Commit 5531aa4d authored by Dan Gohman's avatar Dan Gohman
Browse files

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.

llvm-svn: 110835
parent 824ea8f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment