[PATCH] D51325: [X86] Type legalize v2i32 div/rem by scalarizing rather than promoting

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 30 13:16:31 PDT 2018


craig.topper updated this revision to Diff 163397.
craig.topper added a comment.

Disable the new custom scalarizing if we are legalizing v2i32 via widening instead or promoting. The generic type legalizer knows to scalarize v2i32 div/rem in that case since it can't widen a trapping operation.


https://reviews.llvm.org/D51325

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/scalar_widen_div.ll
  test/CodeGen/X86/vector-idiv-v2i32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51325.163397.patch
Type: text/x-patch
Size: 35801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180830/a8a1eaed/attachment.bin>


More information about the llvm-commits mailing list