| commit | a7e13782f1a6cbc234536e3c642dd6af0d33c76c | [log] [tgz] |
|---|---|---|
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | Sat Oct 24 05:37:35 2015 +0000 |
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | Sat Oct 24 05:37:35 2015 +0000 |
| tree | 0028c79766de1566f49e54e5b97696cc9b350435 | |
| parent | bb5ffc50b7bf3ba75d16dd97b91c166f403bb52a [diff] |
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