> What is a good place for that? Given that ConstantRange is in lib/IR, I think you could just add it to ConstantRange itself (as a static function, or a special intersection function, etc.). http://reviews.llvm.org/D5638