OSDN Git Service

Don't use runtime bounds check between address spaces.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 2 Oct 2013 22:38:17 +0000 (22:38 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 2 Oct 2013 22:38:17 +0000 (22:38 +0000)
commit407847f130885dd9e26e908f033f697c0975aeae
tree81aac510e2a9576382d837cdf38c549350bc4e4b
parent62faf2f9d06392f6a619a0f95900bb7246f93573
Don't use runtime bounds check between address spaces.

Don't vectorize with a runtime check if it requires a
comparison between pointers with different address spaces.
The values can't be assumed to be directly comparable.
Previously it would create an illegal bitcast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191862 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/runtime-check-address-space.ll [new file with mode: 0644]
test/Transforms/LoopVectorize/runtime-check-readonly-address-space.ll [new file with mode: 0644]