[all-commits] [llvm/llvm-project] 108279: [SelectionDAG] Use llvm::Optional<APInt> for FoldV...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Jan 8 08:09:53 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 108279948de31eba4f212b2a4715030b9d471c9e
      https://github.com/llvm/llvm-project/commit/108279948de31eba4f212b2a4715030b9d471c9e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-01-08 (Wed, 08 Jan 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

  Log Message:
  -----------
  [SelectionDAG] Use llvm::Optional<APInt> for FoldValue.

Use llvm::Optional<APInt> instead of std::pair<APInt, bool> with the bool second being used to report success/failure of fold.




More information about the All-commits mailing list