[llvm-commits] [llvm] r89982 - /llvm/trunk/lib/Target/README.txt
Chris Lattner
sabre at nondot.org
Thu Nov 26 16:35:06 PST 2009
Author: lattner
Date: Thu Nov 26 18:35:04 2009
New Revision: 89982
URL: http://llvm.org/viewvc/llvm-project?rev=89982&view=rev
Log:
this (and probably several others) are now done.
Modified:
llvm/trunk/lib/Target/README.txt
Modified: llvm/trunk/lib/Target/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=89982&r1=89981&r2=89982&view=diff
==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Thu Nov 26 18:35:04 2009
@@ -1196,39 +1196,6 @@
GCC PR33344 is a similar case.
-//===---------------------------------------------------------------------===//
-
-[PHI TRANSLATE INDEXED GEPs] PR5313
-
-Load redundancy elimination for simple loop. This loop:
-
-void append_text(const char* text,unsigned char * const io) {
- while(*text)
- *io=*text++;
-}
-
-Compiles to have a fully redundant load in the loop (%2):
-
-define void @append_text(i8* nocapture %text, i8* nocapture %io) nounwind {
-entry:
- %0 = load i8* %text, align 1 ; <i8> [#uses=1]
- %1 = icmp eq i8 %0, 0 ; <i1> [#uses=1]
- br i1 %1, label %return, label %bb
-
-bb: ; preds = %bb, %entry
- %indvar = phi i32 [ 0, %entry ], [ %tmp, %bb ] ; <i32> [#uses=2]
- %text_addr.04 = getelementptr i8* %text, i32 %indvar ; <i8*> [#uses=1]
- %2 = load i8* %text_addr.04, align 1 ; <i8> [#uses=1]
- store i8 %2, i8* %io, align 1
- %tmp = add i32 %indvar, 1 ; <i32> [#uses=2]
- %scevgep = getelementptr i8* %text, i32 %tmp ; <i8*> [#uses=1]
- %3 = load i8* %scevgep, align 1 ; <i8> [#uses=1]
- %4 = icmp eq i8 %3, 0 ; <i1> [#uses=1]
- br i1 %4, label %return, label %bb
-
-return: ; preds = %bb, %entry
- ret void
-}
//===---------------------------------------------------------------------===//
More information about the llvm-commits
mailing list