Skip to content

Commit 9bc8c47

Browse files
committed
fixup! [EraVM] Enable main induction variable removal in LSR
1 parent bce4b59 commit 9bc8c47

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

llvm/lib/Target/EraVM/EraVMIndexedMemOpsPrepare.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@
6060
// functions of memory intrinsic, hence this pass is supposed to be run
6161
// after the memory intrinsic expansion pass, the generated loops can
6262
// benefit from this pass.
63-
//
64-
// TODO: CPR-1421 Remove loop index
65-
// The pointers inside the loop will be increased per iteration.
66-
// We can use them to judge whether loop should exit. In this way, if
67-
// loop index isn't used by any other places, we can optimize out loop
68-
// index along with instruction used to increase its value.
6963
//===----------------------------------------------------------------------===//
7064

7165
#include "EraVM.h"

llvm/test/CodeGen/EraVM/indexed-memops.ll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
target datalayout = "E-p:256:256-i256:256:256-S32-a:256:256"
44
target triple = "eravm"
55

6-
; TODO: CPR-1421 Remove loop index
7-
; The register r2 and r1 are pointers and will be increased per iteration,
8-
; we can use them to judge whether loop should exit, the add instruction used
9-
; to increase loop index r4 can be optimized out.
106
define void @loop1(i256 addrspace(1)* %dest, i256 addrspace(1)* %src, i256 %size) {
117
; CHECK-LABEL: loop1:
128
; CHECK: ; %bb.0:

0 commit comments

Comments
 (0)