[llvm] r360106 - [TableGen] Fix a typo
Yan Luo via llvm-commits
llvm-commits at lists.llvm.org
Mon May 6 18:07:46 PDT 2019
Author: yanluo
Date: Mon May 6 18:07:46 2019
New Revision: 360106
URL: http://llvm.org/viewvc/llvm-project?rev=360106&view=rev
Log:
[TableGen] Fix a typo
Check "Big" instead of "Small" in the second condition.
Differential Revision: https://reviews.llvm.org/D61605
Modified:
llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=360106&r1=360105&r2=360106&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Mon May 6 18:07:46 2019
@@ -479,7 +479,7 @@ bool TypeInfer::EnforceSmallerThan(TypeS
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);
More information about the llvm-commits
mailing list