summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DetectDeadLanes.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-12-16 18:52:33 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-12-16 18:52:33 +0000
commit089c699743614cc99340c694454b4333c44d0198 (patch)
tree69da60047a32451224d356f72b076c54534d580c /llvm/lib/CodeGen/DetectDeadLanes.cpp
parentf624ec27b75701f1227eb03a44f3da84920c798d (diff)
downloadbcm5719-llvm-089c699743614cc99340c694454b4333c44d0198.tar.gz
bcm5719-llvm-089c699743614cc99340c694454b4333c44d0198.zip
Fix CodeGenPrepare::stripInvariantGroupMetadata
`dropUnknownNonDebugMetadata` takes a list of "known" metadata IDs. The only reason it worked at all is that `getMetadataID` returns something unrelated -- it returns the subclass ID of the receiver (which is used in `dyn_cast` etc.). That does not numerically match `LLVMContext::MD_invariant_group` and ends up dropping `invariant_group` along with every other metadata that does not numerically match `LLVMContext::MD_invariant_group`. llvm-svn: 289973
Diffstat (limited to 'llvm/lib/CodeGen/DetectDeadLanes.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud