Adding const to pointed/referenced types doesn't usually help the compiler, since they don't guarantee that the underlying object is const (nor that any use can't involve const_casting away the constness and mutating the value anyway).
On Fri, Feb 17, 2017 at 2:34 PM Aditya Kumar via Phabricator via cfe-commits <cfe-commits@lists.llvm.org> wrote: > hiraditya added a comment. > > Adding const could help compiler, I do not have any specific performance > numbers yet. So if this is too much trouble then we don't have to merge > this. > > > https://reviews.llvm.org/D30035 > > > > _______________________________________________ > cfe-commits mailing list > cfe-commits@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits >
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits