[PATCH] Use invariants in LazyValueInfo
Chandler Carruth
chandlerc at gmail.com
Thu Jul 17 11:58:34 PDT 2014
================
Comment at: lib/Analysis/LazyValueInfo.cpp:720-730
@@ +719,13 @@
+
+static void findInvariantUsers(Value *V, SmallVector<Value *, 8> &Invs,
+ const DataLayout *DL, Instruction *CxtI,
+ const DominatorTree *DT,
+ unsigned Depth = 0) {
+ // At depth 0 we're provided with the original value, at other depths, the
+ // possible opcodes are restricted to limit the cost of the search.
+ // For example:
+ // 0 V V
+ // 1 icmp add
+ // 2 invariant icmp
+ // 3 invariant
+
----------------
See comment on the other patch, it will end up applying here as well.
http://reviews.llvm.org/D4511
More information about the llvm-commits
mailing list