summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-12-04 09:22:28 +0000
committerHal Finkel <hfinkel@anl.gov>2014-12-04 09:22:28 +0000
commit8b24b32c44d77ca3121240a13e0f40cb6d5a766c (patch)
tree70b96d9a6edaed06d7fbea0a0aba82ceaf5590b1 /llvm/lib/IR/Function.cpp
parent003fc7f4bbcf18c517c8fbed5b88831d01a224bb (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud