[PowerPC] Disable CTR loops containing operations on half-precision
authorNemanja Ivanovic <nemanjai@ca.ibm.com>
Tue, 29 Dec 2020 04:51:51 +0000 (22:51 -0600)
committerNemanja Ivanovic <nemanjai@ca.ibm.com>
Tue, 29 Dec 2020 11:12:50 +0000 (05:12 -0600)
commit0a19fc3088f58f9a73fdb39a373cba7885be557f
treeeb4d8d190becd3de2dd4b6a36084830ead498225
parent5abfeccf10bcbc0d673ece21ddd8d4ac4a0e7594
[PowerPC] Disable CTR loops containing operations on half-precision

On subtargets prior to Power9, conversions to/from half precision
are lowered to libcalls. This makes loops containing such operations
invalid candidates for HW loops.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=48519
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/test/CodeGen/PowerPC/pr48519.ll [new file with mode: 0644]