HomePhabricator

[ValueTracking] Fix PR23011.

Authored by sanjoy on Mar 25 2015, 3:33 PM.

Description

[ValueTracking] Fix PR23011.

Summary:
ComputeNumSignBits returns incorrect results for srem instructions.
This change fixes the issue and adds a test case.

Reviewers: nadav, nicholas, atrick

Subscribers: llvm-commits

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

llvm-svn: 233225

Details

Committed
sanjoyMar 25 2015, 3:33 PM
Differential Revision
D8600: [ValueTracking] Fix PR23011.
Parents
rG09f3ff9a0ac6: [DAGCombiner] Add support for TRUNCATE + FP_EXTEND vector constant folding
Branches
Unknown
Tags
Unknown