[PATCH] D15135: Extend the use of @llvm.invariant.start/end intrinsics for GVN-based load elimination purposes to also handle global variables.
Larisse Voufo via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 1 17:00:17 PST 2015
lvoufo created this revision.
lvoufo added reviewers: reames, nlewycky, chandlerc.
lvoufo added a subscriber: llvm-commits.
The -globalopt pass is made to require -invariant-info-marker, similarly to -gvn. (Note: Both -gvn and -globalopt require basic AA.)
The test case is also expanded to illustrate the subtle nuances and expected similarities between local and global variables.
http://reviews.llvm.org/D15135
Files:
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/LoadElim/invariant.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15135.41580.patch
Type: text/x-patch
Size: 6743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151202/d399658b/attachment.bin>
More information about the llvm-commits
mailing list