diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-28 16:56:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-28 16:56:46 +0000 |
commit | ab73c493ea1289dafeb1225cd0066410aa5c9ee0 (patch) | |
tree | cba40b68c057c2afe53563a6214dc5c564d5f8b1 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 6eca4eff1950ca9c39d3c41b798c94cf7d8208f7 (diff) | |
download | bcm5719-llvm-ab73c493ea1289dafeb1225cd0066410aa5c9ee0.tar.gz bcm5719-llvm-ab73c493ea1289dafeb1225cd0066410aa5c9ee0.zip |
Fix pr14893.
When simplifycfg moves an instruction, it must drop metadata it doesn't know
is still valid with the preconditions changes. In particular, it must drop
the range and tbaa metadata.
The patch implements this with an utility function to drop all metadata not
in a white list.
llvm-svn: 200322
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions