[PATCH] D25803: [AMDGPU] Promote udiv/sdiv (i1, i16] operations to i32

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 20 09:27:46 PDT 2016


tstellarAMD added inline comments.


================
Comment at: lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp:200-202
-  if (I.getOpcode() == Instruction::SDiv ||
-      I.getOpcode() == Instruction::UDiv)
-    return false;
----------------
I think we should be letting the SelectionDAG handle this, which is what this patch does: https://reviews.llvm.org/D25699




https://reviews.llvm.org/D25803





More information about the llvm-commits mailing list