[all-commits] [llvm/llvm-project] a8ae41: [SelectionDAGBuilder] Save iterator to avoid secon...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue Aug 10 22:38:24 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a8ae41fb518768fcc385b31fa1b16b20817cc1e7
https://github.com/llvm/llvm-project/commit/a8ae41fb518768fcc385b31fa1b16b20817cc1e7
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-08-10 (Tue, 10 Aug 2021)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Log Message:
-----------
[SelectionDAGBuilder] Save iterator to avoid second DenseMap lookup. NFC
We were calling find and then using operator[]. Instead keep the
iterator from find and use it to get the value.
Just happened to notice while investigating how we decide what extends
to use between basic blocks.
More information about the All-commits
mailing list