This patch fixes pr25548.
Current implementation of PPCBoolRetToInt doesn't handle CallInst correctly, so it failed to do the intended optimization when there is a CallInst with parameters. This patch fixed that.
Carrot on Jul 11 2016, 4:08 PM.Authored by
I believe the code is correct, but I have a few quibbles.