[X86] Enable ISD::TRUNCATE support from v2i64 and v4i64 nodes
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 22 Jul 2023 15:03:50 +0000 (16:03 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 22 Jul 2023 15:04:00 +0000 (16:04 +0100)
commit8b4d7333f4a16457f471d1790638f742e7f2c5fb
tree5b1281de53391f22fc81301a42f4e15b0a866e13
parent910450a28ba9ce5ad67ff62d5cbb4fa81d567aac
[X86] Enable ISD::TRUNCATE support from v2i64 and v4i64 nodes

Addresses the last comment from D154592 - ensure we only truncate with PACKSS/PACKUS when it can be cheaply done (and use shuffles otherwise).
llvm/lib/Target/X86/X86ISelLowering.cpp