[all-commits] [llvm/llvm-project] d3d77f: [EarlyCSE, TTI] Don't create new, unused, instructi...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Tue Jul 8 13:44:13 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d3d77f71aaf46ec705abdf80db37725dd0c03659
https://github.com/llvm/llvm-project/commit/d3d77f71aaf46ec705abdf80db37725dd0c03659
Author: Florian Hahn <flo at fhahn.com>
Date: 2025-07-08 (Tue, 08 Jul 2025)
Changed paths:
M llvm/include/llvm/Analysis/TargetTransformInfo.h
M llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
M llvm/lib/Analysis/TargetTransformInfo.cpp
M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
M llvm/lib/Transforms/Scalar/EarlyCSE.cpp
M llvm/test/Transforms/EarlyCSE/AArch64/intrinsics.ll
Log Message:
-----------
[EarlyCSE,TTI] Don't create new, unused, instructions. (#134534)
getOrCreateResultFromMemIntrinsic can modify the current function by
inserting new instructions without EarlyCSE keeping track of the
changes.
Introduce a new CanCreate argument, and update the function to only create
new instructions when CanCreate = true. Use it when appropriate.
Fixes https://github.com/llvm/llvm-project/issues/145183
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list