[llvm] r250384 - Don't pretend AMDGPU backend knows how to custom-lower UDIVREM for vector types; it can't
Artyom Skrobov via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 02:18:47 PDT 2015
Author: askrobov
Date: Thu Oct 15 04:18:47 2015
New Revision: 250384
URL: http://llvm.org/viewvc/llvm-project?rev=250384&view=rev
Log:
Don't pretend AMDGPU backend knows how to custom-lower UDIVREM for vector types; it can't
Reviewers: arsenm, jvesely, tstellarAMD
Subscribers: arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D13734
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp?rev=250384&r1=250383&r2=250384&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp Thu Oct 15 04:18:47 2015
@@ -355,7 +355,7 @@ AMDGPUTargetLowering::AMDGPUTargetLoweri
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);
More information about the llvm-commits
mailing list