[PATCH] D41652: [InstCombine] Add an option to disable addrspacecast folding into GEP
Marek Olšák via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 31 20:21:18 PST 2017
mareko created this revision.
mareko added reviewers: rnk, aprantl, majnemer, chandlerc, spatel, craig.topper, RKSimon, hfinkel, sanjoy, davide.
Herald added a subscriber: tpr.
AMDGPU users use addrspacecast to zero-extend a 32-bit pointer to 64 bits.
No other instruction is ever used on 32-bit pointers.
AMDGPU doesn't have full support for 32-bit pointers everywhere, so make
sure addrspacecast isn't folded, so that we don't get GEP on 32-bit
pointers.
https://reviews.llvm.org/D41652
Files:
include/llvm/IR/Value.h
lib/IR/Value.cpp
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/cast-no-addrspacecast-folding.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41652.128380.patch
Type: text/x-patch
Size: 4770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180101/f9881283/attachment.bin>
More information about the llvm-commits
mailing list