[llvm] b4d9cd2 - [NFC] Update stale comment after D154001
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 09:36:35 PDT 2023
Author: Arthur Eubanks
Date: 2023-06-29T09:36:10-07:00
New Revision: b4d9cd2d61c037996ba972becbe45b79df99a15a
URL: https://github.com/llvm/llvm-project/commit/b4d9cd2d61c037996ba972becbe45b79df99a15a
DIFF: https://github.com/llvm/llvm-project/commit/b4d9cd2d61c037996ba972becbe45b79df99a15a.diff
LOG: [NFC] Update stale comment after D154001
Added:
Modified:
llvm/lib/Analysis/ScalarEvolution.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index d4bbb4b467d13..111d4d30aab96 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -6810,8 +6810,8 @@ const ConstantRange &ScalarEvolution::getRangeRef(
RangeType);
if (U->getType()->isPointerTy() && SignHint == HINT_RANGE_UNSIGNED) {
- // Strengthen the range if the underlying IR value is a global/alloca
- // using the size of the object.
+ // Strengthen the range if the underlying IR value is a
+ // global/alloca/heap allocation using the size of the object.
ObjectSizeOpts Opts;
Opts.RoundToAlign = false;
Opts.NullIsUnknownSize = true;
More information about the llvm-commits
mailing list