summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2018-06-06 21:37:35 +0000
committerMichael Kruse <llvm@meinersbur.de>2018-06-06 21:37:35 +0000
commit2dab88e6525722bb43963aa96db3f1f9b44d0f8c (patch)
tree5c1594bc520632f58012029d05ba99aa5a18dbf4 /lldb/packages/Python/lldbsuite/test/python_api
parent6fda6b1210915eab68a3a5efeaf0cc30d1d55361 (diff)
downloadbcm5719-llvm-2dab88e6525722bb43963aa96db3f1f9b44d0f8c.tar.gz
bcm5719-llvm-2dab88e6525722bb43963aa96db3f1f9b44d0f8c.zip
[OpTree] Introduce shortcut for computing the def->target mapping. NFCI.
In case the schedule has not changed and the operand tree root uses a value defined in an ancestor loop, the def-to-target mapping is trivial. For instance, the SCoP for (int i < 0; i < N; i+=1) { DefStmt: D = ...; for (int j < 0; j < N; j+=1) { TargetStmt: use(D); } } has DefStmt-to-TargetStmt mapping of { DefStmt[i] -> TargetStmt[i,j] } This should apply on the majority of def-to-target mappings. This patch detects this case and directly constructs the expected mapping. It assumes that the mapping never crosses the loop header DefStmt is in, which ForwardOpTree does not support at the moment anyway. Differential Revision: https://reviews.llvm.org/D47752 llvm-svn: 334134
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud