[PATCH] D52596: [InstCombine] Add combines of icmp (mul nsw/nuw X, C2), C when C % C2 == 0

Nicola Zaghen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 27 03:26:47 PDT 2018


Nicola created this revision.
Nicola added a reviewer: spatel.
Herald added a subscriber: llvm-commits.

I think this is the least tricky part of the combines. The proof for this (and all the others) is here:

- eq/neq: https://rise4fun.com/Alive/9PBA
- sgt/ugt: https://rise4fun.com/Alive/58yr
- slt/ult: https://rise4fun.com/Alive/VCQ

The ones implemented here are the ones with the C2 % C1 == 0


Repository:
  rL LLVM

https://reviews.llvm.org/D52596

Files:
  lib/Transforms/InstCombine/InstCombineCompares.cpp
  test/Transforms/InstCombine/icmp-mul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52596.167265.patch
Type: text/x-patch
Size: 4910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180927/307d6d0e/attachment.bin>


More information about the llvm-commits mailing list