[PATCH] D120518: const correctness for getTargetTransformInfo

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 14:18:59 PST 2022


arsenm added a comment.

In D120518#3344148 <https://reviews.llvm.org/D120518#3344148>, @jrtc27 wrote:

> This isn't const *correctness*, this is adding a new restriction. The existing code is totally correct, but this potentially makes downstream code no longer correct.

Maintaining state in TTI is definitely bad, so this is a good restriction


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120518/new/

https://reviews.llvm.org/D120518



More information about the llvm-commits mailing list