summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Object.cpp
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2014-08-19 17:30:43 +0000
committerRenato Golin <renato.golin@linaro.org>2014-08-19 17:30:43 +0000
commitdd6394d83344a3f61ddcf9fa0804308146d6b888 (patch)
tree1c3b1ca830bdf8fb64ee7c008bdc287d582c8069 /llvm/lib/Object/Object.cpp
parentb25e7b42a977e0a31664ea0a34f4ffb9b37e5556 (diff)
downloadbcm5719-llvm-dd6394d83344a3f61ddcf9fa0804308146d6b888.tar.gz
bcm5719-llvm-dd6394d83344a3f61ddcf9fa0804308146d6b888.zip
Small refactor on VectorizerHint for deduplication
Previously, the hint mechanism relied on clean up passes to remove redundant metadata, which still showed up if running opt at low levels of optimization. That also has shown that multiple nodes of the same type, but with different values could still coexist, even if temporary, and cause confusion if the next pass got the wrong value. This patch makes sure that, if metadata already exists in a loop, the hint mechanism will never append a new node, but always replace the existing one. It also enhances the algorithm to cope with more metadata types in the future by just adding a new type, not a lot of code. llvm-svn: 215994
Diffstat (limited to 'llvm/lib/Object/Object.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud