llvm-6502/lib/Transforms/InstCombine
Philip Reames 456b7b602c 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.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224961 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-29 22:46:21 +00:00
..
CMakeLists.txt
InstCombine.h InstCombine: Infer nuw for multiplies 2014-12-26 09:50:35 +00:00
InstCombineAddSub.cpp InstCombe: Infer nsw for multiplies 2014-12-26 09:10:14 +00:00
InstCombineAndOrXor.cpp InstCombe: Infer nsw for multiplies 2014-12-26 09:10:14 +00:00
InstCombineCalls.cpp Strength reduce intrinsics with overflow into regular arithmetic operations if possible. 2014-12-17 07:29:19 +00:00
InstCombineCasts.cpp More code format fix from r224133, NFC 2014-12-12 18:48:37 +00:00
InstCombineCompares.cpp Removed extra line from a comment to test first commit. NFC. 2014-11-28 10:38:18 +00:00
InstCombineLoadStoreAlloca.cpp Loading from null is valid outside of addrspace 0 2014-12-29 22:46:21 +00:00
InstCombineMulDivRem.cpp InstCombine: Infer nuw for multiplies 2014-12-26 09:50:35 +00:00
InstCombinePHI.cpp Update SetVector to rely on the underlying set's insert to return a pair<iterator, bool> 2014-11-19 07:49:26 +00:00
InstCombineSelect.cpp InstCombine: Squash an icmp+select into bitwise arithmetic 2014-12-20 04:45:35 +00:00
InstCombineShifts.cpp Make use of @llvm.assume in ValueTracking (computeKnownBits, etc.) 2014-09-07 18:57:58 +00:00
InstCombineSimplifyDemanded.cpp Add additional patterns for @llvm.assume in ValueTracking 2014-09-07 19:21:07 +00:00
InstCombineVectorOps.cpp fixed some typos 2014-07-07 22:13:58 +00:00
InstCombineWorklist.h Canonicalize header guards into a common format. 2014-08-13 16:26:38 +00:00
InstructionCombining.cpp Reapply: [InstCombine] Fix visitSwitchInst to use right operand types for sub cstexpr 2014-12-19 17:12:35 +00:00
LLVMBuild.txt
Makefile