[PATCH] D28300: [InstCombine] Fix address space handling when removing allocas
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 5 10:02:19 PST 2017
arsenm added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineInternal.h:445
+ /// pointer with a new value, propagating the new address space to all users.
+ void replacePtrUsesAndPropagateAddrSpace(Value *OldPtr, Value *NewPtr) {
+ unsigned NewAddrSpace = NewPtr->getType()->getPointerAddressSpace();
----------------
This could also be a utility somewhere more general
https://reviews.llvm.org/D28300
More information about the llvm-commits
mailing list