summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LineEditor/LineEditor.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-08-21 21:00:45 +0000
committerCraig Topper <craig.topper@intel.com>2017-08-21 21:00:45 +0000
commit775ffcc8f5a1321d7e0a41fc6af54c1970b1da0b (patch)
treeff41700a83ac6481d98acc4ff4ac8d33d1d7f30e /llvm/lib/LineEditor/LineEditor.cpp
parent3d48bb5fc2eb6316fa16a3f48cdf2c8df3ed217d (diff)
downloadbcm5719-llvm-775ffcc8f5a1321d7e0a41fc6af54c1970b1da0b.tar.gz
bcm5719-llvm-775ffcc8f5a1321d7e0a41fc6af54c1970b1da0b.zip
[InstCombine] Move the checks for pointer types in getMaskedTypeForICmpPair earlier in the function
I don't think there's any reason to have them scattered about and on all 4 operands. We already have an early check that both compares must be the same type. And within a given compare the LHS and RHS must have the same type. Beyond that I don't think there's anyway this function returns anything valid for pointer types. So let's just return early and be done with it. Differential Revision: https://reviews.llvm.org/D36561 llvm-svn: 311383
Diffstat (limited to 'llvm/lib/LineEditor/LineEditor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud