[PowerPC] Do not attempt to combine fptoui without FPCVT
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 24 May 2023 16:12:19 +0000 (11:12 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 24 May 2023 16:14:26 +0000 (11:14 -0500)
commitde681d53ba8278ebb14b056bd7a2385bbe48ad82
tree4db3d098103b7652f063de0d3c042e0c0df52d96
parent81fb5a0e1cf8550ad20700ea1461030de0bc052d
[PowerPC] Do not attempt to combine fptoui without FPCVT

Commit 8064caf83fb166b709bfe0e7641c5181341cb064 added a call
to a function that performs this combine without checking whether
the target supports FPCVT. This caused asserts to trip on BE bots
as the default target does not have this feature.
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/fptoui-be-crash.ll [new file with mode: 0644]