[PATCH] D129235: [GVN] Add bug fix to reportMayClobberedLoad remark
Vir Narula via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 6 15:48:42 PDT 2022
virnarula created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
virnarula requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
bug fix
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D129235
Files:
llvm/lib/Transforms/Scalar/GVN.cpp
Index: llvm/lib/Transforms/Scalar/GVN.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/GVN.cpp
+++ llvm/lib/Transforms/Scalar/GVN.cpp
@@ -1059,8 +1059,8 @@
if (DT->dominates(cast<Instruction>(OtherAccess), cast<Instruction>(U)))
OtherAccess = U;
else
- assert(DT->dominates(cast<Instruction>(U),
- cast<Instruction>(OtherAccess)));
+ assert(U == OtherAccess || DT->dominates(cast<Instruction>(U),
+ cast<Instruction>(OtherAccess)));
} else
OtherAccess = U;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129235.442704.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220706/b8dd6bb9/attachment.bin>
More information about the llvm-commits
mailing list