[PATCH] D118461: [AMDGPU] Introduce new ISel combine for trunc-slr patterns

Thomas Symalla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 28 07:28:24 PST 2022


tsymalla added a comment.

In D118461#3279351 <https://reviews.llvm.org/D118461#3279351>, @foad wrote:

> It seems like the xor is getting in the way. Would something like D38161 <https://reviews.llvm.org/D38161> help instead?

Currently, the xor gets combined to a setcc_ne which gets combined to the srl / trunc sequence.
Initially, there is the xor / setcc_eq sequence which could be simplified like in D38161 <https://reviews.llvm.org/D38161>, removing the need for the xor.
Probably that would clean up everything a bit.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118461



More information about the llvm-commits mailing list