[PATCH] D101357: [CodeGen][AArch64][SVE] Fold [rdffr, ptest] => rdffrs; bugfix for optimizePTestInstr
Paul Walker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 12 04:52:32 PDT 2021
paulwalker-arm added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:1389-1392
// If the predicate is in a different block (possibly because its been
// hoisted out), then assume the flags are set in between statements.
if (Pred->getParent() != PTest->getParent())
return false;
----------------
I believe this case is handled within areCFlagsAccessedBetweenInstrs, making this redundant code that can be removed?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101357/new/
https://reviews.llvm.org/D101357
More information about the llvm-commits
mailing list