[ZoneAlgo] Use getDefToTarget in makeValInst. NFC.
commit734c3944f1aeb00f29be9db01d4238b8c8165cc2
authorMichael Kruse <llvm@meinersbur.de>
Tue, 26 Jun 2018 14:29:09 +0000 (26 14:29 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 26 Jun 2018 14:29:09 +0000 (26 14:29 +0000)
tree22e91e72fa5504c1a677f9ea7b1dda151f940bf5
parent16b4eb36a7a2f2edef40f4d9851b136be3bea45e
[ZoneAlgo] Use getDefToTarget in makeValInst. NFC.

Move the optimized getDefToTarget() from ForwardOpTree to ZoneAlgo such
that it can be used by makeValInst.

This reduces the compile time of GrTestUtils of the aosp buildbot from
2m46s to 21s, which should fix the timeout issue.

Differential Revision: https://reviews.llvm.org/D48579

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@335606 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/ZoneAlgo.h
lib/Transform/ForwardOpTree.cpp
lib/Transform/ZoneAlgo.cpp