[PATCH] D28013: [LLParser] Reader vector GEP ConsantExpr correctly

Elena Demikhovsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 22:34:27 PST 2016


delena added inline comments.


================
Comment at: lib/AsmParser/LLParser.cpp:3210
                 "getelementptr vector index has a wrong number of elements");
         }
       }
----------------
else
  GEPWidth = ValNumEl;

If you add these 2 lines, you check that all indices have the same vector width.


https://reviews.llvm.org/D28013





More information about the llvm-commits mailing list