Open nemanjai opened 5 years ago
@llvm/issue-subscribers-backend-powerpc
This isn't really specific to the PPC back end. The problem is in the legalizer.
Right but anything like this needs to be connected to a relevant backend. Nobody is going to fix an abstract issue for a combination of legal operations that isn't really used
Fair enough. I'll post a patch for this as soon as I get a chance.
Extended Description
This can be reproduced as follows:
The problem is that PPC does not override TargetLowering::mergeStoresAfterLegalization() and the merging will produce an i128 which isn't legal. It will of course produce it prior to legalization as well, but the legalizer will undo that, the problem is after legalization.
Note that without the noimplicitfloat attribute, things work because using vectors is allowed and then it will find a corresponding vector type.