[DAG] visitVSELECT - don't wait for truncation of sub before attempting to match...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 8 Jun 2022 15:16:26 +0000 (16:16 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 8 Jun 2022 15:16:35 +0000 (16:16 +0100)
commitb84c10d4bc19532392ffd40ce9558a09c544a898
treed1a2575124f419e5ee4be23dbaa50f7432e2d411
parentc9677f6db4b2dfc20d1cee876482b9791f5a2795
[DAG] visitVSELECT - don't wait for truncation of sub before attempting to match with getTruncatedUSUBSAT

Fixes some X86 PSUBUS regressions encountered in D127115 where the truncate was being replaced with a PACKSS/PACKUS before the fold got called again
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp