[llvm] d0749cc - [Attributor][NFC] Use existing constant instead of magic one
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 9 22:25:06 PST 2020
Author: Johannes Doerfert
Date: 2020-02-10T00:24:03-06:00
New Revision: d0749cc709d9e432e9ff6e861f45c6bd92acaadf
URL: https://github.com/llvm/llvm-project/commit/d0749cc709d9e432e9ff6e861f45c6bd92acaadf
DIFF: https://github.com/llvm/llvm-project/commit/d0749cc709d9e432e9ff6e861f45c6bd92acaadf.diff
LOG: [Attributor][NFC] Use existing constant instead of magic one
Added:
Modified:
llvm/include/llvm/Transforms/IPO/Attributor.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index 5f63aa178619..2228b62c0ca6 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -2333,7 +2333,7 @@ struct AADereferenceable
};
using AAAlignmentStateType =
- IncIntegerState<uint32_t, /* maximal alignment */ 1U << 29, 0>;
+ IncIntegerState<uint32_t, Value::MaximumAlignment, 0>;
/// An abstract interface for all align attributes.
struct AAAlign : public IRAttribute<
Attribute::Alignment,
More information about the llvm-commits
mailing list