summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-10-24 05:37:35 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-10-24 05:37:35 +0000
commita7e13782f1a6cbc234536e3c642dd6af0d33c76c (patch)
tree0028c79766de1566f49e54e5b97696cc9b350435 /llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
parentbb5ffc50b7bf3ba75d16dd97b91c166f403bb52a (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud