diff options
author | Hal Finkel <hfinkel@anl.gov> | 2014-12-04 09:22:28 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2014-12-04 09:22:28 +0000 |
commit | 8b24b32c44d77ca3121240a13e0f40cb6d5a766c (patch) | |
tree | 70b96d9a6edaed06d7fbea0a0aba82ceaf5590b1 /llvm/lib/IR/Function.cpp | |
parent | 003fc7f4bbcf18c517c8fbed5b88831d01a224bb (diff) | |
download | bcm5719-llvm-8b24b32c44d77ca3121240a13e0f40cb6d5a766c.tar.gz bcm5719-llvm-8b24b32c44d77ca3121240a13e0f40cb6d5a766c.zip |
Restrict somewhat the memory-allocation pointer cmp opt from r223093
Based on review comments from Richard Smith, restrict this optimization from
applying to globals that might resolve lazily to other dynamically-loaded
modules, and also from dynamic allocas (which might be transformed into malloc
calls). In short, take extra care that the compared-to pointer is really
simultaneously live with the memory allocation.
llvm-svn: 223347
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions