[PowerPC] Disable the CTR optimization in the presence of {min,max}num
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 26 Mar 2016 09:42:31 +0000 (09:42 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 26 Mar 2016 09:42:31 +0000 (09:42 +0000)
commitb549ab02b4659c2e6164cb1a39ef798b80d643df
treed092eb943e796355e898b72b4097c0a3c69fcb39
parent9a5f19f50982790b6004cbd11787ef7f52c0b8a2
[PowerPC] Disable the CTR optimization in the presence of {min,max}num

The minnum and maxnum intrinsics get lowered to libcalls which
invalidates the CTR optimization.

This fixes PR27083.

llvm-svn: 264508
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
llvm/test/CodeGen/PowerPC/ctr-minmaxnum.ll [new file with mode: 0644]