[PATCH] D133332: [MemorySSA][NFC] Simplify if condition
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 5 18:57:52 PDT 2022
StephenFan updated this revision to Diff 458077.
StephenFan retitled this revision from "[MemorySSA] Simplify if condition" to "[MemorySSA][NFC] Simplify if condition".
StephenFan added a comment.
Add [NFC]
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133332/new/
https://reviews.llvm.org/D133332
Files:
llvm/include/llvm/Analysis/MemorySSA.h
Index: llvm/include/llvm/Analysis/MemorySSA.h
===================================================================
--- llvm/include/llvm/Analysis/MemorySSA.h
+++ llvm/include/llvm/Analysis/MemorySSA.h
@@ -1252,8 +1252,7 @@
// to unknown guarantees that any memory accesses that access locations
// after the pointer are considered as clobbers, which is important to
// catch loop carried dependences.
- if (Location.Ptr &&
- !IsGuaranteedLoopInvariant(const_cast<Value *>(Location.Ptr)))
+ if (!IsGuaranteedLoopInvariant(const_cast<Value *>(Location.Ptr)))
CurrentPair.second =
Location.getWithNewSize(LocationSize::beforeOrAfterPointer());
PHITransAddr Translator(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133332.458077.patch
Type: text/x-patch
Size: 734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220906/54aacbd3/attachment.bin>
More information about the llvm-commits
mailing list