[PowerPC] Handle loop predecessor invokes
authorHal Finkel <hfinkel@anl.gov>
Sat, 7 Feb 2015 07:32:58 +0000 (07:32 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 7 Feb 2015 07:32:58 +0000 (07:32 +0000)
commit291cc7bacde8fe093aee4e7cc5b09fc90f61d4bc
tree188e65a68015779bd16163502b5ce50167cc09ec
parent7e575ed1eae1755c044ee80d6e1d81aedd2b37a0
[PowerPC] Handle loop predecessor invokes

If a loop predecessor has an invoke as its terminator, and the return value
from that invoke is used to determine the loop iteration space, then we can't
insert a computation based on that value in the loop predecessor prior to the
terminator (oops). If there's such an invoke, or just no predecessor for that
matter, insert a new loop preheader.

llvm-svn: 228488
llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
llvm/test/CodeGen/PowerPC/preincprep-invoke.ll [new file with mode: 0644]