Skip to content
Commit 4e6cda2d authored by Chad Rosier's avatar Chad Rosier
Browse files

[InstCombine] Fold icmp ugt/ult (udiv i32 C2, X), C1.

This patch adds support for two optimizations:
icmp ugt (udiv C2, X), C1 -> icmp ule X, C2/(C1+1)
icmp ult (udiv C2, X), C1 -> icmp ugt X, C2/C1

Differential Revision: http://reviews.llvm.org/D20123

llvm-svn: 269109
parent 7347fce4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment