[PPC] Handling CallInst in PPCBoolRetToInt
authorGuozhi Wei <carrot@google.com>
Wed, 3 Aug 2016 21:43:51 +0000 (21:43 +0000)
committerGuozhi Wei <carrot@google.com>
Wed, 3 Aug 2016 21:43:51 +0000 (21:43 +0000)
commit9584d18d485c67e57830a8141d84863cdc24ec8e
tree67fcf4564ca2b9aa98829a973a2e6f260d20141e
parent3fcf832cce65fdf810a13f0003b73d6fbc316a0b
[PPC] Handling CallInst in PPCBoolRetToInt

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.

llvm-svn: 277655
llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp
llvm/test/CodeGen/PowerPC/BoolRetToIntTest.ll