[all-commits] [llvm/llvm-project] 26fa33: [InstCombine] Simplify select of cmpxchg transform

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Mar 29 09:57:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 26fa33755f112194850a4bad62442f1043614213
      https://github.com/llvm/llvm-project/commit/26fa33755f112194850a4bad62442f1043614213
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-03-29 (Sun, 29 Mar 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

  Log Message:
  -----------
  [InstCombine] Simplify select of cmpxchg transform

Rather than converting to a dummy select with equal true and false
ops, just directly return the resulting value.

As a side-effect, this fixes missing DCE of the previously replaced
operand.




More information about the All-commits mailing list