[PATCH] D134736: [DAG] select Cond, C, -1 --> or (sext (not Cond)), C when C is MVT::i1

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 06:28:19 PDT 2022


deadalnix created this revision.
deadalnix added reviewers: RKSimon, spatel, gchatelet, lei, laytonio, stefanp, nemanjai, shchenz.
Herald added subscribers: ecnelises, pengfei, hiraditya.
Herald added a project: All.
deadalnix requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In the spirit of D130765 <https://reviews.llvm.org/D130765> . Get rid of cbranches and/or cmov. Usually shorter, but sometime not, becaus eit's hard to prededict when dependency breaking xor will be introduced.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134736

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/cmov-promotion.ll
  llvm/test/CodeGen/X86/pr16031.ll
  llvm/test/CodeGen/X86/select_const.ll
  llvm/test/CodeGen/X86/zext-sext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134736.463214.patch
Type: text/x-patch
Size: 9895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220927/5102f531/attachment-0001.bin>


More information about the llvm-commits mailing list