[PATCH] D102398: [RISCV] Optimize or/xor with immediate

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 13 20:14:07 PDT 2021


MaskRay added a comment.

Can this be moved into `RISCVTargetLowering::targetShrinkDemandedConstant`? aarch64 has a great `optimizeLogicalImm` which may give some inspiration.


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

https://reviews.llvm.org/D102398



More information about the llvm-commits mailing list