[PATCH] D123023: [DAG] SimplifySetCC - relax fold (X^C1) == C2 --> X == C1^C2

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 4 05:02:47 PDT 2022


RKSimon created this revision.
RKSimon added reviewers: dmgreen, spatel, craig.topper.
Herald added subscribers: StephenFan, pengfei, atanasyan, jrtc27, hiraditya, arichardson, sdardis.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.

Remove limitation that wouldn't perform the fold if all the inverted bits are known zero

The thumb2 changes look to be benign, although it does show that the TEQ/TST isel patterns could probably be improved?

Fixes movmsk regression in D122754 <https://reviews.llvm.org/D122754>

I'm not sure who is actively reviewing MIPS codegen at the moment, and thats the one case which shows a notable improvement :-(


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123023

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/Mips/countleading.ll
  llvm/test/CodeGen/Thumb2/thumb2-teq.ll
  llvm/test/CodeGen/X86/peep-test-3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123023.420143.patch
Type: text/x-patch
Size: 6732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220404/9a396a02/attachment.bin>


More information about the llvm-commits mailing list