[PATCH] D83139: [InstCombine] Always try to invert non-canonical predicate of an icmp

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 3 14:09:44 PDT 2020


lebedev.ri updated this revision to Diff 275462.
lebedev.ri retitled this revision from "[InstCombine] Always try to invert non-canonical predicate of an icmp feeding select" to "[InstCombine] Always try to invert non-canonical predicate of an icmp".
lebedev.ri added a comment.
Herald added a subscriber: zzheng.

Handle it at `icmp` level.
`fcmp` is a can of worms i'm not inclined to touch here..


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83139

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/canonicalize-selects-icmp-condition-bittest.ll
  llvm/test/Transforms/InstCombine/icmp-mul-zext.ll
  llvm/test/Transforms/InstCombine/logical-select.ll
  llvm/test/Transforms/InstCombine/select-with-bitwise-ops.ll
  llvm/test/Transforms/InstCombine/shift.ll
  llvm/test/Transforms/LoopUnroll/runtime-loop-multiple-exits.ll
  llvm/test/Transforms/PGOProfile/chr.ll
  llvm/test/Transforms/SimplifyCFG/merge-cond-stores.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83139.275462.patch
Type: text/x-patch
Size: 223882 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200703/15faf8a1/attachment-0001.bin>


More information about the llvm-commits mailing list