[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 14:29:22 PDT 2022


deadalnix updated this revision to Diff 463338.
deadalnix added a comment.

Add a test case for this spercifically in select_const and modify cmov-promotion so that this optimization doesn't kick in.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134736/new/

https://reviews.llvm.org/D134736

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  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.463338.patch
Type: text/x-patch
Size: 4128 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220927/82cb876d/attachment.bin>


More information about the llvm-commits mailing list