[PATCH] D98564: [AArch64] Peephole rule to remove redundant cmp after cset.

Pavel Iliin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 15 05:50:52 PDT 2021


ilinpv added a comment.

In D98564#2624774 <https://reviews.llvm.org/D98564#2624774>, @dmgreen wrote:

> I see that this is an extension to the existing peephole optimizations, but is there any reason not to do this during ISel?

This optimization relies on liveness analysis to check that condition flags are not used in successors (see areCFlagsAliveInSuccessors) and I guess it would not fit ISel.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98564



More information about the llvm-commits mailing list