[PATCH] D37216: [SROA] propagate !range metadata when moving loads
Hal Finkel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 5 15:12:57 PDT 2017
hfinkel added a comment.
You can benchmarks on the ValueTracking change? How did those turn out?
================
Comment at: lib/Transforms/Utils/PromoteMemoryToRegister.cpp:172
+public:
+ unsigned start;
+ unsigned end;
----------------
Variable names start with a capital letter.
================
Comment at: lib/Transforms/Utils/PromoteMemoryToRegister.cpp:264
+ if (BB != I->getParent()) {
+ // instructions in different basic blocks, so control flow
+ // can diverge between them (we could track this with
----------------
Start comments with a capital letter.
================
Comment at: lib/Transforms/Utils/PromoteMemoryToRegister.cpp:270
+
+ unsigned index1 = getInstructionIndex(CxtI);
+ unsigned index2 = getInstructionIndex(I);
----------------
Local variable names start with a capital letter.
================
Comment at: lib/Transforms/Utils/PromoteMemoryToRegister.cpp:280
+ // we notice that CxtI can only be in the first range R where
+ // CxtI.end < R.end. If we that range using binary search,
+ // we can check whether I and CxtI are both in it.
----------------
If we that -> If we find that
https://reviews.llvm.org/D37216
More information about the llvm-commits
mailing list