[PATCH] D66604: [GVN] AnalyzeLoadAvailability: Replace a load after lifetime.end with undef (PR20811)
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 1 09:52:14 PDT 2019
xbolva00 added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/GVN.cpp:877
+ // Load immediately after lifetime end -> undef
+ if(isLifetimeEnd(DepInst)) {
+ Res = AvailableValue::get(UndefValue::get(LI->getType()));
----------------
if (
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66604/new/
https://reviews.llvm.org/D66604
More information about the llvm-commits
mailing list