[all-commits] [llvm/llvm-project] 765ef4: [X86] Check destination element type before formin...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Jun 9 07:16:14 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 765ef4bb2af604ea2bbd6c1bffaa6e1600804c9e
https://github.com/llvm/llvm-project/commit/765ef4bb2af604ea2bbd6c1bffaa6e1600804c9e
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-06-09 (Wed, 09 Jun 2021)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/vector-trunc-ssat.ll
Log Message:
-----------
[X86] Check destination element type before forming VTRUNCS/VTRUNCUS in combineTruncateWithSat.
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.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D103940
More information about the All-commits
mailing list