aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2022-12-13 16:11:33 -0500
committerSanjay Patel <spatel@rotateright.com>2022-12-13 16:12:09 -0500
commit41513bc7a23ff47b7435203aa1257e10e02ab7dd (patch)
treef30d1694866266e0cf98d140e5d4794facb7c503 /llvm/lib/Analysis/ValueTracking.cpp
parent3ed6143e817ea59e91e965f424514c4c02dab13f (diff)
downloadllvm-41513bc7a23ff47b7435203aa1257e10e02ab7dd.zip
llvm-41513bc7a23ff47b7435203aa1257e10e02ab7dd.tar.gz
llvm-41513bc7a23ff47b7435203aa1257e10e02ab7dd.tar.bz2
Revert "[InstCombine] add tests for add-of-extends; NFC"
This reverts commit c8cba0bc4a8c9f4f3f10e17f601ed924dfb82bef. An unintended code change snuck into this (was supposed to just add tests).
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 66cae4e..584e645 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -270,12 +270,6 @@ bool llvm::haveNoCommonBitsSet(const Value *LHS, const Value *RHS,
match(LHS, m_c_Xor(m_c_And(m_Specific(RHS), m_Value(Y)), m_Deferred(Y))))
return true;
- // Peek through extends:
- // (ext Y) op ext(~Y)
- if (match(LHS, m_ZExtOrSExt(m_Value(Y))) &&
- match(RHS, m_ZExtOrSExt(m_Not(m_Specific(Y)))))
- return true;
-
// Look for: (A & B) op ~(A | B)
{
Value *A, *B;