[llvm-commits] [llvm] r117301 - /llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp
Dan Gohman
gohman at apple.com
Mon Oct 25 13:22:29 PDT 2010
Author: djg
Date: Mon Oct 25 15:22:29 2010
New Revision: 117301
URL: http://llvm.org/viewvc/llvm-project?rev=117301&view=rev
Log:
Only read one bit for testing for a readonly type, leaving the other
bits open for future uses.
Modified:
llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp?rev=117301&r1=117300&r2=117301&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp Mon Oct 25 15:22:29 2010
@@ -102,8 +102,7 @@
ConstantInt *CI = dyn_cast<ConstantInt>(Node->getOperand(2));
if (!CI)
return false;
- // TODO: Think about the encoding.
- return CI->isOne();
+ return CI->getValue()[0];
}
};
}
More information about the llvm-commits
mailing list