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.
Differential D22243
[PPC] Handling CallInst in PPCBoolRetToInt Carrot on Jul 11 2016, 4:08 PM. Authored by
Details
Diff Detail Event TimelineComment Actions I believe the code is correct, but I have a few quibbles.
Thanks! Comment Actions Did this ever land upstream? PR25548 is still open and I can't find a matching commit. |