Internally to DAGCombiner the SDValues were passed by non-const
reference despite not being modified. They were then passed by
const reference to TLI.
This patch passes them by value which is consistent with the vast
majority of code.
Paths
| Differential D120420
[DAGCombiner][TargetLowering] Pass SDValue by value to isMulAddWithConstProfitable. ClosedPublic Authored by craig.topper on Feb 23 2022, 9:45 AM.
Details Summary Internally to DAGCombiner the SDValues were passed by non-const This patch passes them by value which is consistent with the vast
Diff Detail
Event TimelineHerald added subscribers: luke957, frasercrmck, ecnelises and 22 others. · View Herald TranscriptFeb 23 2022, 9:45 AM This revision is now accepted and ready to land.Feb 23 2022, 10:25 AM This revision was landed with ongoing or failed builds.Feb 23 2022, 12:41 PM Closed by commit rGc7d6448d037e: [DAGCombiner][TargetLowering] Pass SDValue by value to… (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 410910 llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.h
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
|