oota-llvm.git
17 years agoInstead of yet another enum indicating the "assembly language flavor",
Bill Wendling [Tue, 16 Jan 2007 09:29:17 +0000 (09:29 +0000)]
Instead of yet another enum indicating the "assembly language flavor",
just use the one that's in the subtarget.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33255 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix PR918 by only using typedefs to name struct types. This makes the later
Chris Lattner [Tue, 16 Jan 2007 07:22:23 +0000 (07:22 +0000)]
Fix PR918 by only using typedefs to name struct types.  This makes the later
type ordering stuff work better.  This fixes PR918 and
CodeGen/CBackend/2007-01-15-NamedArrayType.ll

Patch by Gordon Henriksen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33254 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotestcase for PR918
Chris Lattner [Tue, 16 Jan 2007 07:21:28 +0000 (07:21 +0000)]
testcase for PR918

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33253 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd a note: we need whole-function selectiondags :)
Chris Lattner [Tue, 16 Jan 2007 06:39:48 +0000 (06:39 +0000)]
add a note: we need whole-function selectiondags :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33252 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix PR1114 and CodeGen/Generic/2007-01-15-LoadSelectCycle.ll by being
Chris Lattner [Tue, 16 Jan 2007 05:59:59 +0000 (05:59 +0000)]
Fix PR1114 and CodeGen/Generic/2007-01-15-LoadSelectCycle.ll by being
careful when folding "c ? load p : load q" that C doesn't reach either load.
If so, folding this into load (c ? p : q) will induce a cycle in the graph.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33251 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase for PR1114
Chris Lattner [Tue, 16 Jan 2007 05:58:50 +0000 (05:58 +0000)]
new testcase for PR1114

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33250 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd options to view the dags before the first or second pass of dag combine.
Chris Lattner [Tue, 16 Jan 2007 04:55:25 +0000 (04:55 +0000)]
add options to view the dags before the first or second pass of dag combine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33249 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdded a -mtriple flag to force darwin backend.
Bill Wendling [Tue, 16 Jan 2007 04:15:20 +0000 (04:15 +0000)]
Added a -mtriple flag to force darwin backend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33248 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake inline ASM the INTEL one if it's in that emission mode.
Bill Wendling [Tue, 16 Jan 2007 04:13:03 +0000 (04:13 +0000)]
Make inline ASM the INTEL one if it's in that emission mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33247 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix for PR1095:
Bill Wendling [Tue, 16 Jan 2007 03:42:04 +0000 (03:42 +0000)]
Fix for PR1095:
LLVM would miscompile ASM dialects when compiling for PPC. Added dialects for
the X86 and PPC backends. It defaults to "0", the first variant of a compound
inline asm expression.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33246 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoCode refactoring.
Devang Patel [Tue, 16 Jan 2007 02:00:38 +0000 (02:00 +0000)]
Code refactoring.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33245 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove extra white spaces. Fix comments.
Devang Patel [Mon, 15 Jan 2007 23:06:56 +0000 (23:06 +0000)]
Remove extra white spaces. Fix comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33244 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDo not record last users of Pass Manager.
Devang Patel [Mon, 15 Jan 2007 20:31:54 +0000 (20:31 +0000)]
Do not record last users of Pass Manager.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33243 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUnbreak VC++ build.
Jeff Cohen [Mon, 15 Jan 2007 20:27:18 +0000 (20:27 +0000)]
Unbreak VC++ build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33242 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotest darwin too! :)
Chris Lattner [Mon, 15 Jan 2007 18:32:24 +0000 (18:32 +0000)]
test darwin too! :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33241 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoOne more @ to remove.
Reid Spencer [Mon, 15 Jan 2007 18:28:34 +0000 (18:28 +0000)]
One more @ to remove.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33240 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agomake this more efficient in release builds (time and space)
Chris Lattner [Mon, 15 Jan 2007 18:28:18 +0000 (18:28 +0000)]
make this more efficient in release builds (time and space)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33239 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate documentation for parameter attributes for the syntax change.
Reid Spencer [Mon, 15 Jan 2007 18:27:39 +0000 (18:27 +0000)]
Update documentation for parameter attributes for the syntax change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33238 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix a regression in my isIntegral patch that broke 471.omnetpp. This is
Chris Lattner [Mon, 15 Jan 2007 17:55:20 +0000 (17:55 +0000)]
Fix a regression in my isIntegral patch that broke 471.omnetpp.  This is
because TargetData::getTypeSize() returns the same for i1 and i8.  This fix
is not right for the full generality of bitwise types, but it fixes the
regression.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33237 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDon't print address of ETNode. Print the DFSNumIn which uniquely identifies
Nick Lewycky [Mon, 15 Jan 2007 14:30:07 +0000 (14:30 +0000)]
Don't print address of ETNode. Print the DFSNumIn which uniquely identifies
the basic block and is stable across runs in gdb or valgrind.

Make Node::update handle edges which dominate and are tighter than
existing edges.

Replace makeEqual's "squeeze theorem" code. Fixes miscompilation.

Gate the calls to defToOps and opsToDef. Before this, we were getting IG
edges about values which weren't even defined in the dominated area. This
reduces the size of the IG by about half.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33236 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRun an instcombine pass after inlining but before scalarrepl. This allows
Chris Lattner [Mon, 15 Jan 2007 07:41:51 +0000 (07:41 +0000)]
Run an instcombine pass after inlining but before scalarrepl.  This allows
instcombine to clean up the code, which makes more code suitable for SRoA.
This helps C++ code in particular, e.g. speeding up tramp3d by 31%.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33235 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement InstCombine/phi.ll:test7, deletion of trivial value loops for
Chris Lattner [Mon, 15 Jan 2007 07:30:06 +0000 (07:30 +0000)]
Implement InstCombine/phi.ll:test7, deletion of trivial value loops for
induction variables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33234 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase
Chris Lattner [Mon, 15 Jan 2007 07:29:29 +0000 (07:29 +0000)]
new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33233 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agosimplify some code now that types are signless
Chris Lattner [Mon, 15 Jan 2007 07:02:54 +0000 (07:02 +0000)]
simplify some code now that types are signless

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33232 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agodelete stores to allocas with one use. This is a trivial form of DSE which
Chris Lattner [Mon, 15 Jan 2007 06:51:56 +0000 (06:51 +0000)]
delete stores to allocas with one use.  This is a trivial form of DSE which
often kicks in for ?: expressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33231 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd a simple case where instcombine can detect and remove a dead alloca
Chris Lattner [Mon, 15 Jan 2007 06:51:25 +0000 (06:51 +0000)]
add a simple case where instcombine can detect and remove a dead alloca

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33230 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoConstant fold llvm.powi.*. This speeds up tramp3d--v4 by 9.5%
Chris Lattner [Mon, 15 Jan 2007 06:27:37 +0000 (06:27 +0000)]
Constant fold llvm.powi.*.  This speeds up tramp3d--v4 by 9.5%

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33229 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd some notes
Chris Lattner [Mon, 15 Jan 2007 06:25:39 +0000 (06:25 +0000)]
add some notes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33228 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Mon, 15 Jan 2007 02:41:46 +0000 (02:41 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33227 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1113:
Reid Spencer [Mon, 15 Jan 2007 02:40:33 +0000 (02:40 +0000)]
For PR1113:
Increment the counter after the second use, not after the first use. This
fixes PR1113.

Also, rename some classes for simplicity and to more naturally be
reminscient of LLVM 1.9. This in preparation for additional classes that
will provide a scaled down model of the LLVM 1.9 IR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33226 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agorename Type::isIntegral to Type::isInteger, eliminating the old Type::isInteger.
Chris Lattner [Mon, 15 Jan 2007 02:27:26 +0000 (02:27 +0000)]
rename Type::isIntegral to Type::isInteger, eliminating the old Type::isInteger.
rename Type::getIntegralTypeMask to Type::getIntegerTypeMask.

This makes naming much more consistent.  For example, there are now no longer any
instances of IntegerType that are not considered isInteger! :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33225 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoregenerate
Chris Lattner [Mon, 15 Jan 2007 02:12:07 +0000 (02:12 +0000)]
regenerate

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33224 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoteach VMCore to accept i1 add's and shifts
Chris Lattner [Mon, 15 Jan 2007 02:05:34 +0000 (02:05 +0000)]
teach VMCore to accept i1 add's and shifts

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33223 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoeliminate calls to Type::isInteger, preferring isIntegral instead.
Chris Lattner [Mon, 15 Jan 2007 02:03:16 +0000 (02:03 +0000)]
eliminate calls to Type::isInteger, preferring isIntegral instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33222 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoallow i1 to operators like shift and add.
Chris Lattner [Mon, 15 Jan 2007 02:00:29 +0000 (02:00 +0000)]
allow i1 to operators like shift and add.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33221 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate code to eliminate calls to isInteger, calling isIntegral instead.
Chris Lattner [Mon, 15 Jan 2007 01:58:56 +0000 (01:58 +0000)]
Update code to eliminate calls to isInteger, calling isIntegral instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33220 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoChange to match API changes.
Chris Lattner [Mon, 15 Jan 2007 01:55:32 +0000 (01:55 +0000)]
Change to match API changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33219 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoEliminate calls to isInteger, generalizing code and tightening checks as needed.
Chris Lattner [Mon, 15 Jan 2007 01:55:30 +0000 (01:55 +0000)]
Eliminate calls to isInteger, generalizing code and tightening checks as needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33218 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTerminology change: drop 'integral' completely. Now we just have integer,
Chris Lattner [Mon, 15 Jan 2007 01:54:13 +0000 (01:54 +0000)]
Terminology change: drop 'integral' completely.  Now we just have integer,
which includes i1.  Change the semantics of the various instructions to
support i1 where they didn't before: for example, it is now legal [though
not terribly useful, as it is the same as xor] to add two i1 values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33217 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake use of isInteger vs isIntegral more explicit
Chris Lattner [Mon, 15 Jan 2007 01:48:11 +0000 (01:48 +0000)]
Make use of isInteger vs isIntegral more explicit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33216 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoensure these don't xpass if opt crashes
Chris Lattner [Mon, 15 Jan 2007 01:04:21 +0000 (01:04 +0000)]
ensure these don't xpass if opt crashes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33215 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix correlated exprs regressions
Chris Lattner [Mon, 15 Jan 2007 01:02:34 +0000 (01:02 +0000)]
Fix correlated exprs regressions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33214 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agodon't discriminate against i1
Chris Lattner [Mon, 15 Jan 2007 00:45:50 +0000 (00:45 +0000)]
don't discriminate against i1

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33213 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate
Reid Spencer [Mon, 15 Jan 2007 00:26:18 +0000 (00:26 +0000)]
Regenerate

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33212 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoReorganize things a bit in preparation for rewrite. Although this looks
Reid Spencer [Mon, 15 Jan 2007 00:25:53 +0000 (00:25 +0000)]
Reorganize things a bit in preparation for rewrite. Although this looks
like a lot, its really only two changes:

1. Move stuff that should be private to .y out of the .h file.
2. Make all semantic values pointers.

This cleans up the silly destroy methods and changes them to delete. It
also moves the TypeInfo and ValueInfo classes into the .y where we can
modify them more readily because they have no clients any more.

This shouldn't result in any functional changes in llvm-upgrade.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33211 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix Analysis/Dominators/2006-10-02-BreakCritEdges.ll
Chris Lattner [Mon, 15 Jan 2007 00:15:09 +0000 (00:15 +0000)]
Fix Analysis/Dominators/2006-10-02-BreakCritEdges.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33210 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoPrimitive types don't include integers any more, adjust.
Reid Spencer [Sun, 14 Jan 2007 21:46:42 +0000 (21:46 +0000)]
Primitive types don't include integers any more, adjust.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33209 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoinstcombine has always been miscompiling fcmp x, x, disregarding possible
Chris Lattner [Sun, 14 Jan 2007 19:42:17 +0000 (19:42 +0000)]
instcombine has always been miscompiling fcmp x, x, disregarding possible
NANs.  This fixes PR1111 and Transforms/InstCombine/2007-01-14-FcmpSelf.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33208 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd accessors
Chris Lattner [Sun, 14 Jan 2007 19:41:24 +0000 (19:41 +0000)]
add accessors

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33207 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase
Chris Lattner [Sun, 14 Jan 2007 19:40:48 +0000 (19:40 +0000)]
new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33206 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoverify that hidden visibility support never goes away
Chris Lattner [Sun, 14 Jan 2007 18:57:37 +0000 (18:57 +0000)]
verify that hidden visibility support never goes away

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33205 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix PR1110 and Analysis/Dominators/2007-01-14-BreakCritEdges.ll by being
Chris Lattner [Sun, 14 Jan 2007 18:33:35 +0000 (18:33 +0000)]
Fix PR1110 and Analysis/Dominators/2007-01-14-BreakCritEdges.ll by being
more careful about unreachable code when updating dominator info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33204 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotestcase for pr1110
Chris Lattner [Sun, 14 Jan 2007 18:33:11 +0000 (18:33 +0000)]
testcase for pr1110

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33203 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoNo hidden visiblity on Mingw32/Cygwin
Anton Korobeynikov [Sun, 14 Jan 2007 11:49:39 +0000 (11:49 +0000)]
No hidden visiblity on Mingw32/Cygwin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33202 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoclarify linkonce/weak linkage
Chris Lattner [Sun, 14 Jan 2007 06:51:48 +0000 (06:51 +0000)]
clarify linkonce/weak linkage

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33201 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd support for hidden visibility to darwin/ppc and linux/ppc targets
Chris Lattner [Sun, 14 Jan 2007 06:37:54 +0000 (06:37 +0000)]
add support for hidden visibility to darwin/ppc and linux/ppc targets

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33200 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix an incorrect conversion of int -> i32
Reid Spencer [Sun, 14 Jan 2007 06:29:54 +0000 (06:29 +0000)]
Fix an incorrect conversion of int -> i32

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33199 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd support for hidden visibility to darwin/x86
Chris Lattner [Sun, 14 Jan 2007 06:29:53 +0000 (06:29 +0000)]
add support for hidden visibility to darwin/x86

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33198 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd a new HiddenDirective member for handling visibility.
Chris Lattner [Sun, 14 Jan 2007 06:27:21 +0000 (06:27 +0000)]
add a new HiddenDirective member for handling visibility.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33197 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd a missing else. This caused globals to be printed as:
Chris Lattner [Sun, 14 Jan 2007 06:08:14 +0000 (06:08 +0000)]
add a missing else.  This caused globals to be printed as:
       movq ___dso_handle@GOTPCREL(%rip)(%rip), %rsi

instead of:
        movq ___dso_handle@GOTPCREL(%rip), %rsi

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33196 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofit to 80 cols.
Chris Lattner [Sun, 14 Jan 2007 05:57:53 +0000 (05:57 +0000)]
fit to 80 cols.
Remove now-extraneous checks for ptr->ptr bitcasts.

Fix PR1109 and Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll.  We
need to consider arbitrary sized objects when checking for nested GEP offsets.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33195 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotestcase for pr1109
Chris Lattner [Sun, 14 Jan 2007 05:56:45 +0000 (05:56 +0000)]
testcase for pr1109

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33194 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix PR1101 and Analysis/ScalarEvolution/trip-count.ll
Chris Lattner [Sun, 14 Jan 2007 01:24:47 +0000 (01:24 +0000)]
Fix PR1101 and Analysis/ScalarEvolution/trip-count.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33193 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase for pr1101
Chris Lattner [Sun, 14 Jan 2007 01:23:43 +0000 (01:23 +0000)]
new testcase for pr1101

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33192 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agodarwin doesn't use .hidden. Disable this until we fix it right.
Chris Lattner [Sun, 14 Jan 2007 00:50:56 +0000 (00:50 +0000)]
darwin doesn't use .hidden.  Disable this until we fix it right.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33191 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd a global variable example
Chris Lattner [Sun, 14 Jan 2007 00:27:09 +0000 (00:27 +0000)]
add a global variable example

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33190 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix PR1103 and Regression/CodeGen/X86/2007-01-13-StackPtrIndex.ll
Chris Lattner [Sun, 14 Jan 2007 00:13:07 +0000 (00:13 +0000)]
Fix PR1103 and Regression/CodeGen/X86/2007-01-13-StackPtrIndex.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33189 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase for pr1103
Chris Lattner [Sun, 14 Jan 2007 00:12:50 +0000 (00:12 +0000)]
new testcase for pr1103

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33188 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoremove dead code, frameindices must be resolve before the asmprinter runs.
Chris Lattner [Sat, 13 Jan 2007 23:59:03 +0000 (23:59 +0000)]
remove dead code, frameindices must be resolve before the asmprinter runs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33187 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotestcase reduced from pr1107
Chris Lattner [Sat, 13 Jan 2007 23:11:45 +0000 (23:11 +0000)]
testcase reduced from pr1107

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33186 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll, which is part
Chris Lattner [Sat, 13 Jan 2007 23:11:38 +0000 (23:11 +0000)]
Fix Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll, which is part
of PR1107

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33185 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix indentation to prior level for easier diffs.
Reid Spencer [Sat, 13 Jan 2007 05:10:53 +0000 (05:10 +0000)]
Fix indentation to prior level for easier diffs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33184 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1043:
Reid Spencer [Sat, 13 Jan 2007 05:06:52 +0000 (05:06 +0000)]
For PR1043:
Bye, Bye Booly. Remove the use of the bool type from non-upgraded test
cases and from grep expressions. The parser doesn't accept it and the
asm writer doesn't produce it any more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33183 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 05:00:46 +0000 (05:00 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33182 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoBye bye bool. AsmWriter doesn't generate it any more so AsmParser shouldn't
Reid Spencer [Sat, 13 Jan 2007 05:00:20 +0000 (05:00 +0000)]
Bye bye bool. AsmWriter doesn't generate it any more so AsmParser shouldn't
read it any more. This is consistent with the new IR as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33181 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 04:40:16 +0000 (04:40 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33180 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoCan't generate "bool" any more. Change to i1
Reid Spencer [Sat, 13 Jan 2007 04:39:47 +0000 (04:39 +0000)]
Can't generate "bool" any more. Change to i1

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33179 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoCan't grep for bool any more.
Reid Spencer [Sat, 13 Jan 2007 04:36:22 +0000 (04:36 +0000)]
Can't grep for bool any more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33178 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago"Default context" blocks can occur after a non-default one. This meant
Nick Lewycky [Sat, 13 Jan 2007 02:05:28 +0000 (02:05 +0000)]
"Default context" blocks can occur after a non-default one. This meant
that properties were being applied where they didn't belong. Fixes crash
in new MiBench testcase.

Also mark debugging code as such in #ifdef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33177 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix a FIXME. 1 bit integer types are now printed as i1 not bool.
Reid Spencer [Sat, 13 Jan 2007 01:09:33 +0000 (01:09 +0000)]
Fix a FIXME. 1 bit integer types are now printed as i1 not bool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33176 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix a minor bug handling constant exprs, introduced by a recent patch.
Chris Lattner [Sat, 13 Jan 2007 00:42:58 +0000 (00:42 +0000)]
Fix a minor bug handling constant exprs, introduced by a recent patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33175 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove this obsolete test. The CBE will never be able to handle zero argument
Chris Lattner [Sat, 13 Jan 2007 00:40:40 +0000 (00:40 +0000)]
Remove this obsolete test.  The CBE will never be able to handle zero argument
vararg functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33174 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoWhoops. Give this test some input. Doubly important since its XFAIL.
Reid Spencer [Sat, 13 Jan 2007 00:28:36 +0000 (00:28 +0000)]
Whoops. Give this test some input. Doubly important since its XFAIL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33173 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 00:23:06 +0000 (00:23 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33172 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDon't attempt to upgrade argument to va.start and va.end if there are none.
Reid Spencer [Sat, 13 Jan 2007 00:22:40 +0000 (00:22 +0000)]
Don't attempt to upgrade argument to va.start and va.end if there are none.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33171 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThis is not an upgrade candidate any more.
Reid Spencer [Sat, 13 Jan 2007 00:19:13 +0000 (00:19 +0000)]
This is not an upgrade candidate any more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33170 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 00:13:49 +0000 (00:13 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33169 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake sure the IntegerValType has enough space for 2^23 bits.
Reid Spencer [Sat, 13 Jan 2007 00:12:29 +0000 (00:12 +0000)]
Make sure the IntegerValType has enough space for 2^23 bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33168 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake sure that GEP indices are only 32 or 64 bits. We're not ready for
Reid Spencer [Sat, 13 Jan 2007 00:10:02 +0000 (00:10 +0000)]
Make sure that GEP indices are only 32 or 64 bits. We're not ready for
indices with other bit sizes yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33167 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoGet rid of some useless distinction between bool and integer.
Reid Spencer [Sat, 13 Jan 2007 00:09:12 +0000 (00:09 +0000)]
Get rid of some useless distinction between bool and integer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33166 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate.
Reid Spencer [Sat, 13 Jan 2007 00:03:30 +0000 (00:03 +0000)]
Regenerate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33165 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix a bug in a recent patch
Chris Lattner [Sat, 13 Jan 2007 00:02:49 +0000 (00:02 +0000)]
fix a bug in a recent patch

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33164 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1093:
Reid Spencer [Sat, 13 Jan 2007 00:02:00 +0000 (00:02 +0000)]
For PR1093:
Implement upgrading of the varargs intrinsics. These must now have i8*
arguments. This patch bitcasts arguments to i8* and fixes the prototypes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33163 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTest case for PR1093 for llvm.va_* intrinsics upgrade.
Reid Spencer [Sat, 13 Jan 2007 00:00:43 +0000 (00:00 +0000)]
Test case for PR1093 for llvm.va_* intrinsics upgrade.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33162 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agovirtual not needed.
Jim Laskey [Fri, 12 Jan 2007 23:39:50 +0000 (23:39 +0000)]
virtual not needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33161 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove this file. It was inadvertently added because I could not find
Reid Spencer [Fri, 12 Jan 2007 23:32:11 +0000 (23:32 +0000)]
Remove this file. It was inadvertently added because I could not find
TargetLowering.cpp in CodeGen/SelectionDAG (location makes no sense to me)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33160 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoCompensate for loss of DerivedTypes.h in TargetLowering.h
Reid Spencer [Fri, 12 Jan 2007 23:31:12 +0000 (23:31 +0000)]
Compensate for loss of DerivedTypes.h in TargetLowering.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33159 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMove a function out of line.
Reid Spencer [Fri, 12 Jan 2007 23:30:31 +0000 (23:30 +0000)]
Move a function out of line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33158 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoremove over-general code.
Chris Lattner [Fri, 12 Jan 2007 23:28:32 +0000 (23:28 +0000)]
remove over-general code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33157 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoremove unneeded special case for bool
Chris Lattner [Fri, 12 Jan 2007 23:26:17 +0000 (23:26 +0000)]
remove unneeded special case for bool

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33156 91177308-0d34-0410-b5e6-96231b3b80d8