[all-commits] [llvm/llvm-project] 0d3807: [MergeICmps] Separate out BCECmp and use Optional ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jul 26 08:07:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d3807b365e5aeee34a3c3887813996907eb7ddb
      https://github.com/llvm/llvm-project/commit/0d3807b365e5aeee34a3c3887813996907eb7ddb
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/MergeICmps.cpp

  Log Message:
  -----------
  [MergeICmps] Separate out BCECmp and use Optional (NFC)

Separate out the BCECmp part from BCECmpBlock, which just stores
the comparison atoms without the branch instruction. At the same
time switch the code to return Optional<> rather than objects in
invalid state and partially constructed objects.




More information about the All-commits mailing list