Add test cases to prepare for the optimization that simplifies Add with
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 26 Apr 2018 20:52:27 +0000 (20:52 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 26 Apr 2018 20:52:27 +0000 (20:52 +0000)
commit0e643db48ff92b36c19582e544a8e21b3f5c11ca
treede4756117303a4948a12f118e6479a5a657db942
parent824eb0e6a0585e647e20fdc4314b251cffdc241f
Add test cases to prepare for the optimization that simplifies Add with
remainder expressions as operands.

Summary:
Add test cases to prepare for the new optimization that Simplifies integer add
expression X % C0 + (( X / C0 ) % C1) * C0 to X % (C0 * C1).

Patch by Bixia Zheng!

Reviewers: sanjoy

Reviewed By: sanjoy

Subscribers: jlebar, llvm-commits

Differential Revision: https://reviews.llvm.org/D46017

llvm-svn: 330991
llvm/test/Transforms/InstCombine/add4.ll [new file with mode: 0644]