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.
Paths 
  |  Differential  D22243  
[PPC] Handling CallInst in PPCBoolRetToInt ClosedPublic Authored by Carrot on Jul 11 2016, 4:08 PM. 
Details 
Diff Detail Event TimelineCarrot updated this object. Comment Actions I believe the code is correct, but I have a few quibbles. 
 Thanks! This revision is now accepted and ready to land.Aug 8 2016, 11:36 AM Comment Actions Did this ever land upstream? PR25548 is still open and I can't find a matching commit. 
Revision Contents 
 
Diff 63600 lib/Target/PowerPC/PPCBoolRetToInt.cpp
 test/CodeGen/PowerPC/BoolRetToIntTest.ll
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||