[PATCH] D133332: [MemorySSA][NFC] Simplify if condition
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 00:47:44 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2e7aed1947d2: [MemorySSA][NFC] Simplify if condition (authored by StephenFan).
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.458113.patch
Type: text/x-patch
Size: 734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220906/86046be0/attachment.bin>
More information about the llvm-commits
mailing list