[PATCH] D82061: [IR] Prefer scalar type for struct indexes in GEP constant expressions.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 19 08:38:05 PDT 2020


sdesmalen added inline comments.


================
Comment at: llvm/lib/IR/Constants.cpp:2192
+               !Idx->getType()->isVectorTy()) {
       Idx = ConstantVector::getSplat(EltCount, Idx);
+    }
----------------
What is the reason for not always using a scalar index value?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82061/new/

https://reviews.llvm.org/D82061





More information about the llvm-commits mailing list