[PATCH] D89494: [TargetLowering] Extract simplifySetCCs ctpop into a separate function. NFCI

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 15 13:44:00 PDT 2020


craig.topper created this revision.
craig.topper added a reviewer: spatel.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
craig.topper requested review of this revision.

As requested in D89346 <https://reviews.llvm.org/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.


https://reviews.llvm.org/D89494

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89494.298454.patch
Type: text/x-patch
Size: 4869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201015/59f4500d/attachment.bin>


More information about the llvm-commits mailing list