[all-commits] [llvm/llvm-project] 5e5bda: [IR] Simplify Use::swap. NFCI.

jayfoad via All-commits all-commits at lists.llvm.org
Tue Jul 21 04:15:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e5bda74b61b3e8a4434abe2b5fe5d7ac5880ccd
      https://github.com/llvm/llvm-project/commit/5e5bda74b61b3e8a4434abe2b5fe5d7ac5880ccd
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2020-07-21 (Tue, 21 Jul 2020)

  Changed paths:
    M llvm/lib/IR/Use.cpp
    M llvm/test/Transforms/LoopReroll/nonconst_lb.ll

  Log Message:
  -----------
  [IR] Simplify Use::swap. NFCI.

The new implementation makes it clear that there are exactly two
conditional stores (after the initial no-op optimization). By contrast
the old implementation had seven conditionals, some hidden inside other
functions.

This commit can change the order of operands in operand lists, hence the
tweak to one test case.

Differential Revision: https://reviews.llvm.org/D80116




More information about the All-commits mailing list