[PATCH] D64354: [AArch64][GlobalISel] Optimize conditional branches followed by unconditional branches

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 10:20:08 PDT 2019


aemerson added a comment.

This seemed a little presumptive to do for all targets for me. I can try to move it earlier into a Combiner helper, since I don't want to put optimizations into the IRTranslator unless we can't do it in other places.

In D64354#1573876 <https://reviews.llvm.org/D64354#1573876>, @arsenm wrote:

> FWIW I would like some control over what boolean sources are acceptable to invert. SelectionDAG inserting a condition invert between a control flow intrinsic and the branch required work to undo


In this case I'm just inverting the condition code, we shouldn't need to insert extra instructions.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D64354





More information about the llvm-commits mailing list