[llvm] [EarlyCSE,TTI] Clean up temporary insts created by getOrCreateResult. (PR #134534)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 6 08:20:56 PDT 2025
================
@@ -978,7 +981,8 @@ class EarlyCSE {
V = II->getOperand(0);
break;
default:
- return TTI.getOrCreateResultFromMemIntrinsic(II, ExpectedType);
+ return TTI.getOrCreateResultFromMemIntrinsic(II, ExpectedType,
----------------
fhahn wrote:
Yes, if we make the function non-const, but that would expose much more to be potentially modified, which is why I went with passing in the SmallVectorImpl. can change if preferred
https://github.com/llvm/llvm-project/pull/134534
More information about the llvm-commits
mailing list