This makes setRange take ConstantRange by value since most callers were passing an unnamed temporary ConstantRange. We can then move that ConstantRange into the DenseMap caches. For the callers that weren't passing a temporary, I've added std::move to to the local variable being passed.
Details
Details
Diff Detail
Diff Detail
Better to change type to ConstantRange&&?