[llvm] [LoopFlatten] Recognise gep+gep (PR #72515)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 01:04:16 PST 2023
================
@@ -207,6 +207,12 @@ struct FlattenInfo {
match(MatchedMul, m_c_Mul(m_Trunc(m_Specific(OuterInductionPHI)),
m_Value(MatchedItCount)));
+ // Matches the pattern ptr+i*M+j, with the two additions being done via GEP.
+ bool IsGEP = match(U, m_GEP(m_GEP(m_Value(), m_Value(MatchedMul)),
----------------
nikic wrote:
+1
https://github.com/llvm/llvm-project/pull/72515
More information about the llvm-commits
mailing list