[PATCH] D125641: [DAGCombiner] Fix bug in MatchBSwapHWordLow.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 17:17:17 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:6507
+      if (!DAG.MaskedValueIsZero(N10,
+                                 APInt::getBitsSet(OpSizeInBits, 16, HighBit)))
+        return SDValue();
----------------
RKSimon wrote:
> Isn't APInt::getBitsSet hiBit exclusive?
It is. I'll fix


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125641



More information about the llvm-commits mailing list