[PATCH] D51396: [Constant Hoisting] Hoisting Constant GEP Expressions
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 31 17:01:27 PDT 2018
efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Transforms/Scalar/ConstantHoisting.cpp:733
+ PointerType *Int8PtrTy = Type::getInt8PtrTy(*Ctx,
+ dyn_cast<PointerType>(Ty)->getAddressSpace());
+ Base = new BitCastInst(Base, Int8PtrTy, "base_bitcast", InsertionPt);
----------------
`cast<PointerType>(Ty)`
Repository:
rL LLVM
https://reviews.llvm.org/D51396
More information about the llvm-commits
mailing list