[PATCH] D69741: [Codegen] Both sides of '&&' are same; fixed
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 16:44:25 PDT 2019
xbolva00 created this revision.
xbolva00 added reviewers: craig.topper, RKSimon.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Found by PVS Studio
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D69741
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: D69741.227551.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191101/af170027/attachment.bin>
More information about the llvm-commits
mailing list