diff options
author | Tilmann Scheller <t.scheller@samsung.com> | 2014-05-16 16:50:13 +0000 |
---|---|---|
committer | Tilmann Scheller <t.scheller@samsung.com> | 2014-05-16 16:50:13 +0000 |
commit | 83c57436500fca8f09cf00e816470df46bd5ca6f (patch) | |
tree | b69b7f8778f14540e7e143597089e8a103e3ce1c /llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp | |
parent | 4a3b84d2f5e188eb544bf82e24f12fc78bc2784e (diff) | |
download | bcm5719-llvm-83c57436500fca8f09cf00e816470df46bd5ca6f.tar.gz bcm5719-llvm-83c57436500fca8f09cf00e816470df46bd5ca6f.zip |
[ARM64] Fix wrong comment in load/store optimization pass.
ldr x1, [x0, #64]
add x0, x0, #64
->
ldr x1, [x0], #64
is not a valid transformation, the correct transformation (and what the code actually does) is:
ldr x1, [x0, #64]
add x0, x0, #64
->
ldr x1, [x0, #64]!
llvm-svn: 208998
Diffstat (limited to 'llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp')
-rw-r--r-- | llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp b/llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp index 40b39126fad..9a8e1c3d91c 100644 --- a/llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp +++ b/llvm/lib/Target/ARM64/ARM64LoadStoreOptimizer.cpp @@ -892,7 +892,7 @@ bool ARM64LoadStoreOpt::optimizeBlock(MachineBasicBlock &MBB) { // ldr x1, [x0, #64] // add x0, x0, #64 // merged into: - // ldr x1, [x0], #64 + // ldr x1, [x0, #64]! // The immediate in the load/store is scaled by the size of the register // being loaded. The immediate in the add we're looking for, |