[PATCH] D13734: Don't pretend AMDGPU backend knows how to custom-lower UDIVREM for vector types; it can't
A. Skrobov via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 10:39:10 PDT 2015
tyomitch created this revision.
tyomitch added reviewers: arsenm, jvesely, tstellarAMD.
tyomitch added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.
This recovers the rest of the tests broken by http://reviews.llvm.org/D13732
http://reviews.llvm.org/D13734
Files:
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
Index: lib/Target/AMDGPU/AMDGPUISelLowering.cpp
===================================================================
--- lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+++ lib/Target/AMDGPU/AMDGPUISelLowering.cpp
@@ -355,7 +355,7 @@
setOperationAction(ISD::SMUL_LOHI, VT, Expand);
setOperationAction(ISD::UMUL_LOHI, VT, Expand);
setOperationAction(ISD::SDIVREM, VT, Custom);
- setOperationAction(ISD::UDIVREM, VT, Custom);
+ setOperationAction(ISD::UDIVREM, VT, Expand);
setOperationAction(ISD::ADDC, VT, Expand);
setOperationAction(ISD::SUBC, VT, Expand);
setOperationAction(ISD::ADDE, VT, Expand);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13734.37366.patch
Type: text/x-patch
Size: 629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151014/261eae57/attachment.bin>
More information about the llvm-commits
mailing list