[LoopIdiomRecognize] When looking for 'x & (x -1)' for popcnt, make sure the left...
authorCraig Topper <craig.topper@intel.com>
Thu, 3 May 2018 05:48:49 +0000 (05:48 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 3 May 2018 05:48:49 +0000 (05:48 +0000)
commit856fd686908aac7edb37f1013874cb79c84de5bc
tree1c1e08c22c2e6ad5456d83bbf2caa837f0e74c3f
parenta0cba89f861da4cba80c28a1d3cf30c8e0fb436e
[LoopIdiomRecognize] When looking for 'x & (x -1)' for popcnt, make sure the left hand side of the 'and' matches the left hand side of the 'subtract'

llvm-svn: 331437
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/test/Transforms/LoopIdiom/X86/popcnt.ll