[PATCH] D44891: [RFC][GVN] Remove redundant load by GVN
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 29 02:54:57 PDT 2018
lebedev.ri added inline comments.
================
Comment at: lib/Transforms/Scalar/GVN.cpp:894
+ if (LoadInst *LItoSI = dyn_cast<LoadInst>(DepSI->getValueOperand())) {
+ if (!LItoSI->isAtomic() && !LItoSI->isVolatile() &&
+ (LItoSI->getPointerOperand() == LI->getPointerOperand() &&
----------------
Missing test coverage
Repository:
rL LLVM
https://reviews.llvm.org/D44891
More information about the llvm-commits
mailing list