[llvm] [SLPVectorizer] Use DenseMap::operator[] (NFC) (PR #107123)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 10:09:50 PDT 2024
================
@@ -11841,9 +11841,9 @@ void BoUpSLP::reorderInputsAccordingToOpcode(ArrayRef<Value *> VL,
}
Instruction &BoUpSLP::getLastInstructionInBundle(const TreeEntry *E) {
- auto &Res = EntryToLastInstruction.FindAndConstruct(E);
- if (Res.second)
- return *Res.second;
+ auto &Res = EntryToLastInstruction[E];
----------------
kazutakahirata wrote:
The latest iteration addresses the issues.
https://github.com/llvm/llvm-project/pull/107123
More information about the llvm-commits
mailing list