[PATCH] D14007: Load elimination based on new 'InvarantInfo' property for global variables.
Larisse Voufo via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 22 21:25:40 PDT 2015
lvoufo created this revision.
lvoufo added reviewers: dberlin, reames, nlewycky.
lvoufo added a subscriber: llvm-commits.
Extend D14003, D14004, D14005 and D14006 with handling of global variables:
GlobalOpt scans static constructors to mark allocated 'writeonce' memory prior to evaluating the constructors.
This patch also includes new test cases, which are essentially adapted from the test case in D14006 for "fully global" and "partially global" test cases.
This patch is a break-down of (corrected) D13606.
http://reviews.llvm.org/D14007
Files:
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/LoadElim/global-local-vars.ll
test/Transforms/LoadElim/global-vars.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14007.38206.patch
Type: text/x-patch
Size: 35752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151023/e8b0256b/attachment.bin>
More information about the llvm-commits
mailing list