[PowerPC] Do not attempt to reuse load for 64-bit FP_TO_UINT without FPCVT
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 20 Apr 2020 17:59:47 +0000 (12:59 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 20 Apr 2020 18:00:06 +0000 (13:00 -0500)
commit64b31d96dfd6c05e6d52d8798726dec60502cfde
tree0df5ccc5ebbe1c05342cd9703e4f45d7c8cf22ce
parent1cac82cf388c1321adf8c3e892027a4491a29e3a
[PowerPC] Do not attempt to reuse load for 64-bit FP_TO_UINT without FPCVT

We call the function that attempts to reuse the conversion without checking
whether the target matches the constraints that the callee expects. This patch
adds the check prior to the call.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=43976

Differential revision: https://reviews.llvm.org/D77564
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/pr43976.ll [new file with mode: 0644]