[PATCH] D41856: [PowerPC] Zero-extend the compare operand for ATOMIC_CMP_SWAP

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 12:54:52 PST 2018


efriedma added inline comments.


================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:8819
+// Test if an SDValue is zero-extended from  \p From bits to \p To bits.
+static bool isZeroExtended(SDValue Op, unsigned From, unsigned To) {
+  if (To < From)
----------------
Can you simplify this using MaskedValueIsZero?


Repository:
  rL LLVM

https://reviews.llvm.org/D41856





More information about the llvm-commits mailing list