Skip to content
  • Dan Gohman's avatar
    Use ISD::ADD instead of ISD::SUB with a negated constant. This · 5531aa4d
    Dan Gohman authored
    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
    5531aa4d
Loading