summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-19 15:11:23 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-19 15:11:23 +0000
commit7c69a3b49006b64500bc6d588180f6e7435336b3 (patch)
tree9a7899cd116922755cb8d54eba7f2105e921c2cb /llvm/lib/Target
parent10a837a27e9ee5919e6b822ef416362369de968f (diff)
downloadbcm5719-llvm-7c69a3b49006b64500bc6d588180f6e7435336b3.tar.gz
bcm5719-llvm-7c69a3b49006b64500bc6d588180f6e7435336b3.zip
[RDF] Use faster version of findBlock
llvm-svn: 300704
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Hexagon/RDFCopy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/RDFCopy.cpp b/llvm/lib/Target/Hexagon/RDFCopy.cpp
index 57ce9fabc5e..ea86ffba58f 100644
--- a/llvm/lib/Target/Hexagon/RDFCopy.cpp
+++ b/llvm/lib/Target/Hexagon/RDFCopy.cpp
@@ -59,7 +59,7 @@ void CopyPropagation::recordCopy(NodeAddr<StmtNode*> SA, EqualityMap &EM) {
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)) {
OpenPOWER on IntegriCloud