summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2017-02-22 21:47:08 +0000
committerWei Mi <wmi@google.com>2017-02-22 21:47:08 +0000
commit74d5a90fa6f8e222aeac813c4a0fc0000fea67d6 (patch)
tree14e8712ad9925b222baa6c6e739054a54411d3df /lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py
parent3596a81c69ff805bfcc0b9128d18d791fd49741f (diff)
downloadbcm5719-llvm-74d5a90fa6f8e222aeac813c4a0fc0000fea67d6.tar.gz
bcm5719-llvm-74d5a90fa6f8e222aeac813c4a0fc0000fea67d6.zip
[LSR] Canonicalize formula and put recursive Reg related with current loop in ScaledReg.
After rL294814, LSR formula can have multiple SCEVAddRecExprs inside of its BaseRegs. Previous canonicalization will swap the first SCEVAddRecExpr in BaseRegs with ScaledReg. But now we want to swap the SCEVAddRecExpr Reg related with current loop with ScaledReg. Otherwise, we may generate code like this: RegA + lsr.iv + RegB, where loop invariant parts RegA and RegB are not grouped together and cannot be promoted outside of loop. With this patch, it will ensure lsr.iv to be generated later in the expr: RegA + RegB + lsr.iv, so that RegA + RegB can be promoted outside of loop. Differential Revision: https://reviews.llvm.org/D26781 llvm-svn: 295884
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud