[PATCH] D134360: [ARM] Enable and/cmp0 folding

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 21 08:21:23 PDT 2022


chill added inline comments.


================
Comment at: llvm/lib/Target/ARM/ARMISelLowering.cpp:21204
+    return false;
+  uint64_t MaskVal = Mask->getValue().getZExtValue();
+  return (MaskVal >> 32) == 0 && ARM_AM::getSOImmVal(unsigned(MaskVal)) != -1;
----------------
dmgreen wrote:
> Can this be called with a typesize > 64bits?
Good point, I guess any bit width may come this way.


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

https://reviews.llvm.org/D134360



More information about the llvm-commits mailing list