[llvm] [GVN] Look through select/phi when determining underlying object (PR #99509)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 10:16:35 PDT 2024
================
@@ -736,6 +736,11 @@ inline Value *getUnderlyingObject(Value *V, unsigned MaxLookup = 6) {
return const_cast<Value *>(getUnderlyingObject(VConst, MaxLookup));
}
+/// Like getUnderlyingObject(), but will try harder to find a single underlying
+/// object. In particular, this function also looks through selects and phis.
----------------
tschuett wrote:
Could you please document `MaxLookup`.
https://github.com/llvm/llvm-project/pull/99509
More information about the llvm-commits
mailing list