Skip to content
Commit b62e52e1 authored by Dinesh Dwivedi's avatar Dinesh Dwivedi
Browse files

Refactored and updated SimplifyUsingDistributiveLaws() to

 * Find factorization opportunities using identity values.
 * Find factorization opportunities by treating shl(X, C) as mul (X, shl(C))
 * Keep NSW flag while simplifying instruction using factorization.

This fixes PR19263.

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

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