diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-10-24 05:37:35 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-10-24 05:37:35 +0000 |
commit | a7e13782f1a6cbc234536e3c642dd6af0d33c76c (patch) | |
tree | 0028c79766de1566f49e54e5b97696cc9b350435 /llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | |
parent | bb5ffc50b7bf3ba75d16dd97b91c166f403bb52a (diff) | |
download | bcm5719-llvm-a7e13782f1a6cbc234536e3c642dd6af0d33c76c.tar.gz bcm5719-llvm-a7e13782f1a6cbc234536e3c642dd6af0d33c76c.zip |
Extract out getConstantRangeFromMetadata; NFC
The loop idiom creating a ConstantRange is repeated twice in the
codebase, time to give it a name and a home.
The loop is also repeated in `rangeMetadataExcludesValue`, but using
`getConstantRangeFromMetadata` there would not be an NFC -- the range
returned by `getConstantRangeFromMetadata` may contain a value that none
of the subranges did.
llvm-svn: 251180
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp')
0 files changed, 0 insertions, 0 deletions