[llvm] r300704 - [RDF] Use faster version of findBlock
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 08:11:23 PDT 2017
Author: kparzysz
Date: Wed Apr 19 10:11:23 2017
New Revision: 300704
URL: http://llvm.org/viewvc/llvm-project?rev=300704&view=rev
Log:
[RDF] Use faster version of findBlock
Modified:
llvm/trunk/lib/Target/Hexagon/RDFCopy.cpp
Modified: llvm/trunk/lib/Target/Hexagon/RDFCopy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/RDFCopy.cpp?rev=300704&r1=300703&r2=300704&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/RDFCopy.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/RDFCopy.cpp Wed Apr 19 10:11:23 2017
@@ -59,7 +59,7 @@ void CopyPropagation::recordCopy(NodeAdd
bool CopyPropagation::scanBlock(MachineBasicBlock *B) {
bool Changed = false;
- auto BA = DFG.getFunc().Addr->findBlock(B, DFG);
+ NodeAddr<BlockNode*> BA = DFG.findBlock(B);
for (NodeAddr<InstrNode*> IA : BA.Addr->members(DFG)) {
if (DFG.IsCode<NodeAttrs::Stmt>(IA)) {
More information about the llvm-commits
mailing list