[PATCH] D158068: [DAG] FoldSetCC - add missing icmp(X,undef) -> isTrueWhenEqual case

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 03:28:00 PDT 2023


RKSimon created this revision.
RKSimon added reviewers: craig.topper, efriedma, nikic, arsenm.
Herald added subscribers: luke, pmatos, asb, StephenFan, frasercrmck, kerbowa, luismarques, apazos, sameer.abuasal, pengfei, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, jgravelle-google, sbc100, jvesely, nemanjai, dschuff, qcolombet.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added subscribers: wangpc, MaskRay, aheejin, wdng.
Herald added a project: LLVM.

Followup to D59363 <https://reviews.llvm.org/D59363> which failed to handle the icmp(X,undef) -> isTrueWhenEqual case  - similar to llvm::ConstantFoldCompareInstruction


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158068

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/test/CodeGen/AArch64/pr55178.ll
  llvm/test/CodeGen/AMDGPU/swdev373493.ll
  llvm/test/CodeGen/PowerPC/p10-spill-crgt.ll
  llvm/test/CodeGen/PowerPC/pr45709.ll
  llvm/test/CodeGen/RISCV/pr64503.ll
  llvm/test/CodeGen/Thumb2/ldr-str-imm12.ll
  llvm/test/CodeGen/WebAssembly/pr59626.ll
  llvm/test/CodeGen/X86/2012-01-10-UndefExceptionEdge.ll
  llvm/test/CodeGen/X86/ragreedy-hoist-spill.ll
  llvm/test/CodeGen/X86/tail-dup-merge-loop-headers.ll
  llvm/test/CodeGen/X86/twoaddr-lea.ll
  llvm/test/CodeGen/X86/vec_int_to_fp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158068.550692.patch
Type: text/x-patch
Size: 27169 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230816/e5dce351/attachment.bin>


More information about the llvm-commits mailing list