aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2014-12-29 22:46:21 +0000
committerPhilip Reames <listmail@philipreames.com>2014-12-29 22:46:21 +0000
commit5ad26c353c42cebb7a03d9ada2015093414f3af6 (patch)
tree7ce53f2a8a1432cc6a4af7d55a7bcee529ebdfb6 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parenta629c0f658b44cedf84892c3ab7be4c9a2d5c5a6 (diff)
downloadllvm-5ad26c353c42cebb7a03d9ada2015093414f3af6.zip
llvm-5ad26c353c42cebb7a03d9ada2015093414f3af6.tar.gz
llvm-5ad26c353c42cebb7a03d9ada2015093414f3af6.tar.bz2
Loading from null is valid outside of addrspace 0
This patches fixes a miscompile where we were assuming that loading from null is undefined and thus we could assume it doesn't happen. This transform is perfectly legal in address space 0, but is not neccessarily legal in other address spaces. We really should introduce a hook to control this property on a per target per address space basis. We may be loosing valuable optimizations in some address spaces by being too conservative. Original patch by Thomas P Raoux (submitted to llvm-commits), tests and formatting fixes by me. llvm-svn: 224961
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions