[all-commits] [llvm/llvm-project] 278bd0: [TargetLowering] Extract simplifySetCCs ctpop into...

topperc via All-commits all-commits at lists.llvm.org
Fri Oct 16 19:48:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 278bd068918b7df1fe3a2a31a15122f2a708d883
      https://github.com/llvm/llvm-project/commit/278bd068918b7df1fe3a2a31a15122f2a708d883
  Author: Craig Topper <craig.topper at gmail.com>
  Date:   2020-10-16 (Fri, 16 Oct 2020)

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

  Log Message:
  -----------
  [TargetLowering] Extract simplifySetCCs ctpop into a separate function. NFCI

As requested in D89346. This allows us to add some early outs.

I reordered some checks a little bit to make the more common bail outs happen earlier. Like checking opcode before checking hasOneUse. And I moved the bit width check to make sure it was safe to look through a truncate to the spot where we look through truncates instead of after.

Reviewed By: spatel

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




More information about the All-commits mailing list