[llvm] r327201 - [AliasAnalysis] Shrink AliasResults; NFC
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 9 19:34:43 PST 2018
Author: gbiv
Date: Fri Mar 9 19:34:43 2018
New Revision: 327201
URL: http://llvm.org/viewvc/llvm-project?rev=327201&view=rev
Log:
[AliasAnalysis] Shrink AliasResults; NFC
We're persisting AliasResults in some places in MemorySSA, so the size
of these now matters a little bit (well, 8 regular-sized bits, to be
precise).
Do the same for ModRefInfo for consistency.
Modified:
llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
Modified: llvm/trunk/include/llvm/Analysis/AliasAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/AliasAnalysis.h?rev=327201&r1=327200&r2=327201&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/AliasAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/AliasAnalysis.h Fri Mar 9 19:34:43 2018
@@ -76,7 +76,7 @@ class Value;
///
/// See docs/AliasAnalysis.html for more information on the specific meanings
/// of these values.
-enum AliasResult {
+enum AliasResult : uint8_t {
/// The two locations do not alias at all.
///
/// This value is arranged to convert to false, while all other values
@@ -97,7 +97,7 @@ enum AliasResult {
/// a modification and a reference. These are specifically structured such that
/// they form a three bit matrix and bit-tests for 'mod' or 'ref' or 'must'
/// work with any of the possible values.
-enum class ModRefInfo {
+enum class ModRefInfo : uint8_t {
/// Must is provided for completeness, but no routines will return only
/// Must today. See definition of Must below.
Must = 0,
More information about the llvm-commits
mailing list