mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
[IC] Turn non-null MD on pointer loads to range MD on integer loads.
Summary: This change fixes the FIXME that you recently added when you committed (a modified version of) my patch. When `InstCombine` combines a load and store of an pointer to those of an equivalently-sized integer, it currently drops any `!nonnull` metadata that might be present. This change replaces `!nonnull` metadata with `!range !{ 1, -1 }` metadata instead. Reviewers: chandlerc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7621 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -67,6 +67,9 @@ public:
|
||||
/// \brief Return metadata describing the range [Lo, Hi).
|
||||
MDNode *createRange(const APInt &Lo, const APInt &Hi);
|
||||
|
||||
/// \brief Return metadata describing the range [Lo, Hi).
|
||||
MDNode *createRange(Constant *Lo, Constant *Hi);
|
||||
|
||||
//===------------------------------------------------------------------===//
|
||||
// AA metadata.
|
||||
//===------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user