[llvm] r288871 - [LVI] Simplify obfuscated code
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 16:28:28 PST 2016
Author: reames
Date: Tue Dec 6 18:28:28 2016
New Revision: 288871
URL: http://llvm.org/viewvc/llvm-project?rev=288871&view=rev
Log:
[LVI] Simplify obfuscated code
It doesn't matter why something is overdefined if it is...
Modified:
llvm/trunk/lib/Analysis/LazyValueInfo.cpp
Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=288871&r1=288870&r2=288871&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Tue Dec 6 18:28:28 2016
@@ -224,29 +224,15 @@ public:
return false;
return markOverdefined();
}
-
- if (RHS.isNotConstant()) {
- if (Val == RHS.Val)
- return markOverdefined();
- return markOverdefined();
- }
-
return markOverdefined();
}
if (isNotConstant()) {
- if (RHS.isConstant()) {
- if (Val == RHS.Val)
- return markOverdefined();
- return markOverdefined();
- }
-
if (RHS.isNotConstant()) {
if (Val == RHS.Val)
return false;
return markOverdefined();
}
-
return markOverdefined();
}
More information about the llvm-commits
mailing list