diff options
author | Yan Luo <Yan.Luo2@synopsys.com> | 2019-05-07 01:07:46 +0000 |
---|---|---|
committer | Yan Luo <Yan.Luo2@synopsys.com> | 2019-05-07 01:07:46 +0000 |
commit | 55ed2f53095fd5c73abc70f9c48ad8522dfaab56 (patch) | |
tree | 23562dfbed8802186ef53fba0b316f5927b01f4e | |
parent | 6bc219e6bf617aae1b02318db3946df5f54485c6 (diff) | |
download | bcm5719-llvm-55ed2f53095fd5c73abc70f9c48ad8522dfaab56.tar.gz bcm5719-llvm-55ed2f53095fd5c73abc70f9c48ad8522dfaab56.zip |
[TableGen] Fix a typo
Check "Big" instead of "Small" in the second condition.
Differential Revision: https://reviews.llvm.org/D61605
llvm-svn: 360106
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 0b1687d3e92..1049115ed19 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -479,7 +479,7 @@ bool TypeInfer::EnforceSmallerThan(TypeSetByHwMode &Small, 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); |