[PATCH] D71701: [AArch64] Peephole optimization. Merge AND and TST instructions

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 10:11:58 PST 2020


dmgreen added a comment.

The other option, which might turn out to be simpler is to try and do this in ISel instead. There is a getNodeIfExists(..), which can be used to check if we have an ISD::AND, and an equivalent AArch64ISD::ANDS. Maybe done in performANDCombine?

This is kind of like doing CSE between two different nodes, but ISel is pretty good at that.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71701





More information about the llvm-commits mailing list