[PATCH] D61605: Fix a typo

Yan Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 6 11:22:33 PDT 2019


yan_luo created this revision.
yan_luo added a reviewer: stoklund.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Check B instead of S in the second condition.


Repository:
  rL LLVM

https://reviews.llvm.org/D61605

Files:
  llvm/utils/TableGen/CodeGenDAGPatterns.cpp


Index: llvm/utils/TableGen/CodeGenDAGPatterns.cpp
===================================================================
--- llvm/utils/TableGen/CodeGenDAGPatterns.cpp
+++ llvm/utils/TableGen/CodeGenDAGPatterns.cpp
@@ -479,7 +479,7 @@
     TypeSetByHwMode::SetType &S = Small.get(M);
     TypeSetByHwMode::SetType &B = Big.get(M);
 
-    if (any_of(S, isIntegerOrPtr) && any_of(S, isIntegerOrPtr)) {
+    if (any_of(S, isIntegerOrPtr) && any_of(B, isIntegerOrPtr)) {
       auto NotInt = [](MVT VT) { return !isIntegerOrPtr(VT); };
       Changed |= berase_if(S, NotInt) |
                  berase_if(B, NotInt);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61605.198315.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190506/a880ee1c/attachment.bin>


More information about the llvm-commits mailing list