This is an archive of the discontinued LLVM Phabricator instance.

[X86] Check destination element type before forming VTRUNCS/VTRUNCUS in combineTruncateWithSat.
ClosedPublic

Authored by craig.topper on Jun 8 2021, 10:41 PM.

Details

Summary

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.

Diff Detail