PNEXT and PFIRST set the NZCV flags, so the subsequent PTEST can be
optimized away in AArch64InstrInfo::optimizePTestInstr.
See-also: https://reviews.llvm.org/D93292
Differential D110177
[AArch64][SVE] Remove redundant PTEST following PNEXT/PFIRST peterwaller-arm on Sep 21 2021, 7:36 AM. Authored by
Details PNEXT and PFIRST set the NZCV flags, so the subsequent PTEST can be See-also: https://reviews.llvm.org/D93292
Diff Detail
Unit Tests Event Timeline
Comment Actions
|
Do these tests necessarily need to be MIR tests? The reason I ask is because I generally find them more difficult to read and would have thought some LLVM IR intrinsics would have been sufficient to prove an extra ptest is not added.