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 | 8a0eb36d2386222e9b33aff3094e80ab8981c609 (patch) | |
| tree | ed1ad5e2d8219d777c12c86dbf7d50d1ddf0653e /llvm/lib/Transforms/Utils/LowerSwitch.cpp | |
| parent | 26a18ca97fff86b0139ce765150d2db3862bbca4 (diff) | |
| download | bcm5719-llvm-8a0eb36d2386222e9b33aff3094e80ab8981c609.tar.gz bcm5719-llvm-8a0eb36d2386222e9b33aff3094e80ab8981c609.zip | |
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.
llvm-svn: 96950
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerSwitch.cpp')
0 files changed, 0 insertions, 0 deletions

