llvm-project
32f3f9df - [SLP][NFC] Pre-commit tests for select IR-flag/metadata propagation (#208150)

Commit
6 days ago
[SLP][NFC] Pre-commit tests for select IR-flag/metadata propagation (#208150) Pre-commits regression tests for an upcoming SLPVectorizer fix (see #207982). These IR shapes are currently vectorized by SLP, and the vectorization is functionally correct but when a bundle of scalar`select` instructions is vectorized, the resulting vector `select` drops the fast-math flags (and other IR flags/metadata such as `!unpredictable`) that were common to every scalar lane. This NFC patch records the current (buggy) behavior so that the follow-up fix's diff is limited to the behavioural change: `select_nnan` currently loses `nnan` on the vectorized select, while `select_not_all_nnan` (one lane missing `nnan`) correctly has none. Co-authored-by: Ayush Rai <Ayush.Rai@amd.com>
Author
Parents
Loading