HomePhabricator

[SDAG] allow more cast folding for vector sext-of-setcc

Authored by spatel on Jun 2 2021, 9:55 AM.

Description

[SDAG] allow more cast folding for vector sext-of-setcc

This is a follow-up to D103280 that eases the use restrictions,
so we can handle the motivating case from:
https://llvm.org/PR50055

The loop code is adapted from similar use checks in
ExtendUsesToFormExtLoad() and SliceUpLoad(). I did not see an
easier way to filter out non-chain uses of load values.

Differential Revision: https://reviews.llvm.org/D103462

Details

Committed
spatelJun 2 2021, 10:14 AM
Differential Revision
D103462: [SDAG] allow more cast folding for vector sext-of-setcc
Parents
rG8349ac9aa944: [x86] add test for sext-of-setcc; NFC
Branches
Unknown
Tags
Unknown