[PATCH] D106261: [ARM][LowOverheadLoops] Allow unpredicated VORRs if the operand def produces zeroed false lanes

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 26 01:58:45 PDT 2021


samparker added inline comments.


================
Comment at: llvm/lib/Target/ARM/ARMLowOverheadLoops.cpp:882
 
+  // An unpredicated VORR on identical operands mimics a VMOV and doesn't modify
+  // the incoming lane values, so it produces zeroed false lanes if the operand
----------------
This is the same for most of the instructions that we check here, and this logic is almost the same as the loop at the bottom of the function. So shouldn't the dominates check just be inserted in there instead? I'm slightly dubious about that tbh! This algorithm is working on the basis that the instructions in FalseLanesZero have been proved to behaviour how we want. Adding a VORR in there based upon future checks breaks our assumptions. I feel like this is better handled in ValidateLiveOuts when you've got the whole loop body analysed and you can add some extra logic when scanning though FalseLanesUnknown.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106261/new/

https://reviews.llvm.org/D106261



More information about the llvm-commits mailing list