[PATCH] D103940: [X86] Check destination element type before forming VTRUNCS/VTRUNCUS in combineTruncateWithSat.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 8 22:41:46 PDT 2021


craig.topper created this revision.
craig.topper added reviewers: RKSimon, pengfei, spatel.
Herald added a subscriber: hiraditya.
craig.topper requested review of this revision.
Herald added a project: LLVM.

Fixes crash reported here https://reviews.llvm.org/D73607

Using a store to keep the trunc intact. Returning v16i24 would
cause the trunc to be optimized away in SelectionDAGBuilder.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103940

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/vector-trunc-ssat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103940.350780.patch
Type: text/x-patch
Size: 26627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210609/293abc77/attachment.bin>


More information about the llvm-commits mailing list