Skip to content
Commit a0cba89f authored by Craig Topper's avatar Craig Topper
Browse files

[LoopIdiomRecognize] Add a test case showing that we transform to ctpop...

[LoopIdiomRecognize] Add a test case showing that we transform to ctpop without fully checking the 'x & (x-1)' part.

The code fails to check that the same value is used twice. We only make sure the left hand side of the and is part of the loop recurrence. The 'x' in the subtract can be any value.

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