The TargetData is not used for the isPowerOfTwo determination. It has never
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Dec 2012 16:52:40 +0000 (16:52 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Dec 2012 16:52:40 +0000 (16:52 +0000)
commitb09c146b116359616f6cbd4c8b3328607e00ff42
treec81ad3f2747332bbf1dae618dec28a25004746d5
parent1afbb517965e29b07cb42e2335d5eadd87de6535
The TargetData is not used for the isPowerOfTwo determination.  It has never
been used in the first place.  It simply was passed to the function and to the
recursive invocations.  Simply drop the parameter and update the callers for the
new signature.

Patch by Saleem Abdulrasool!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169988 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ValueTracking.h
lib/Analysis/InstructionSimplify.cpp
lib/Analysis/ValueTracking.cpp
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp