commit | 11acaa374cdcebb161bf0de5f244265d78a749c1 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Tue Jan 05 20:07:06 2010 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Tue Jan 05 20:07:06 2010 +0000 |
tree | 6150e8c34a88c68bfaa4041f914b3d1628015946 | |
parent | 13be48701d09891e7945f9522d622053e1b61d1a [diff] [blame] |
Convert a ton of simple integer type equality tests to the new predicate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92760 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/InstCombine/InstCombineSelect.cpp b/lib/Transforms/InstCombine/InstCombineSelect.cpp index 73ff00f..18b2dff 100644 --- a/lib/Transforms/InstCombine/InstCombineSelect.cpp +++ b/lib/Transforms/InstCombine/InstCombineSelect.cpp
@@ -479,7 +479,7 @@ return ReplaceInstUsesWith(SI, FalseVal); } - if (SI.getType() == Type::getInt1Ty(SI.getContext())) { + if (SI.getType()->isInteger(1)) { if (ConstantInt *C = dyn_cast<ConstantInt>(TrueVal)) { if (C->getZExtValue()) { // Change: A = select B, true, C --> A = or B, C