[PATCH] D71829: [PowerPC] Exploit the rlwinm instructions for "and" with constant.

qshanz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 25 20:59:07 PST 2019


steven.zhang marked an inline comment as done.
steven.zhang added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:4457
+    if (isRunOfOnes64(Imm64, MB, ME)) {
+      if (MB >= 32 && MB <= ME) {
+        //                MB  ME
----------------
shchenz wrote:
> for ` and reg, 0xffffffffffff00ffULL`, it should be replaced by one single rlwinm instruction, seems it is not handled here?
Good point. I will add it together.


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

https://reviews.llvm.org/D71829





More information about the llvm-commits mailing list