Not sure why this logic seems to be repeated in 2 different places,
one called by the other.
On AMDGPU addrspace(3) globals start allocating at 0, so these
checks will be incorrect (not that real code actually tries
to compare these addresses)
Paths
| Differential D48588
ConstantFold: Don't fold global address vs. null for addrspace != 0 ClosedPublic Authored by arsenm on Jun 26 2018, 1:52 AM.
Details
Summary Not sure why this logic seems to be repeated in 2 different places, On AMDGPU addrspace(3) globals start allocating at 0, so these
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jun 26 2018, 11:24 AM
Revision Contents
Diff 152851 lib/IR/ConstantFold.cpp
test/Assembler/ConstantExprNoFold.ll
test/Transforms/InstCombine/constant-fold-address-space-pointer.ll
|