diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-23 16:35:41 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-23 16:35:41 +0000 |
commit | b80a2a686fe76496d71397f8bdda394d5718ab01 (patch) | |
tree | 3bc7be4268bf1d153ff66df0d6d2d61e89611511 /lib/Transforms/InstCombine/InstCombineSelect.cpp | |
parent | c80a1f7721823c081d80afa1345e4dc512cd97d7 (diff) |
Remove the code which constant-folded ptrtoint(inttoptr(x)+c) to
getelementptr. Despite only doing so in the case where x is a known
array object and c can be converted to an index within range, this
could still be invalid if c is actually the address of an object
allocated outside of LLVM. Also, SCEVExpander, the original motivation
for this code, has since been improved to avoid inttoptr+ptroint in
more cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineSelect.cpp')
0 files changed, 0 insertions, 0 deletions