[llvm-commits] [llvm] r73225 - /llvm/trunk/test/Transforms/MergeFunc/fold-weak.ll
Nick Lewycky
nicholas at mxc.ca
Fri Jun 12 06:24:52 PDT 2009
Author: nicholas
Date: Fri Jun 12 08:24:41 2009
New Revision: 73225
URL: http://llvm.org/viewvc/llvm-project?rev=73225&view=rev
Log:
This test is wrong. If you have two weak functions F and G you can't make
either one call the other since either one can be replaced at link time, and
they need to be independent.
Removed:
llvm/trunk/test/Transforms/MergeFunc/fold-weak.ll
Removed: llvm/trunk/test/Transforms/MergeFunc/fold-weak.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/MergeFunc/fold-weak.ll?rev=73224&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/MergeFunc/fold-weak.ll (original)
+++ llvm/trunk/test/Transforms/MergeFunc/fold-weak.ll (removed)
@@ -1,11 +0,0 @@
-; RUN: llvm-as < %s | opt -mergefunc | llvm-dis | grep {alias weak} | count 2
-
-define weak i32 @sum(i32 %x, i32 %y) {
- %sum = add i32 %x, %y
- ret i32 %sum
-}
-
-define weak i32 @add(i32 %x, i32 %y) {
- %sum = add i32 %x, %y
- ret i32 %sum
-}
More information about the llvm-commits
mailing list