Treat Mul just like Add and Subtract
authorJames Molloy <james.molloy@arm.com>
Thu, 8 Oct 2015 12:39:59 +0000 (12:39 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 8 Oct 2015 12:39:59 +0000 (12:39 +0000)
commit6f819bd488d29bec2e60a4fff25d848f46ba36fb
tree3555f9a6c4062b91cf7d0d4bd39d3452741b2d93
parentcbaa85372d18c010007289fb784a253ba01fd360
Treat Mul just like Add and Subtract

Like adds and subtracts, muls ripple only to the left so we can use
the same logic.

While we're here, add a print method to DemandedBits so it can be used
with -analyze, which we'll use in the testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249686 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/DemandedBits.h
lib/Analysis/DemandedBits.cpp
test/Analysis/DemandedBits/basic.ll [new file with mode: 0644]