[all-commits] [llvm/llvm-project] 62ce7e: [InstCombine] fix use check when canonicalizing ab...

RotateRight via All-commits all-commits at lists.llvm.org
Mon Feb 10 11:59:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 62ce7e650a5a388540b5606d34bcce2fb5932498
      https://github.com/llvm/llvm-project/commit/62ce7e650a5a388540b5606d34bcce2fb5932498
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/abs-1.ll

  Log Message:
  -----------
  [InstCombine] fix use check when canonicalizing abs/nabs

We were checking for extra uses of the negated operand even
if we were not going to create it as part of this canonicalization.

This was showing up as a regression when we limit EarlyCSE as
proposed in D74285.




More information about the All-commits mailing list