[PATCH] D34576: [ConstantHoisting] Avoid hoisting constants in GEPs that index into a struct type.

Leo Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 26 11:00:10 PDT 2017


aoli added a comment.

@ributzka it seems that it is guaranteed that the indices into struct type must be constants. It is not only being used by  AddressingModeMatcher. It is also being used by  lib/IR/Instructions.cpp:getIndexedTypeInternal. We don't want to break this guarantee so that we want to fix the constant hoisting.


https://reviews.llvm.org/D34576





More information about the llvm-commits mailing list