oota-llvm.git
17 years agoMake running these tests conditional on llvm-gcc supporting the language
Reid Spencer [Sun, 22 Apr 2007 05:53:18 +0000 (05:53 +0000)]
Make running these tests conditional on llvm-gcc supporting the language
of these test cases.

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

17 years agoFor PR1146:
Reid Spencer [Sun, 22 Apr 2007 05:46:44 +0000 (05:46 +0000)]
For PR1146:
Make ParamAttrsList objects unique. You can no longer directly create or
destroy them but instead must go through the ParamAttrsList::get()
interface.

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

17 years agoAdd the --host-target option.
Reid Spencer [Sun, 22 Apr 2007 05:05:36 +0000 (05:05 +0000)]
Add the --host-target option.

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

17 years agoMinor corrections.
Jeff Cohen [Sun, 22 Apr 2007 01:17:39 +0000 (01:17 +0000)]
Minor corrections.

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

17 years agoImplement PIC for arm-linux.
Lauro Ramos Venancio [Sun, 22 Apr 2007 00:04:12 +0000 (00:04 +0000)]
Implement PIC for arm-linux.

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

17 years agoAdd a .cvsignore file.
Reid Spencer [Sat, 21 Apr 2007 21:53:04 +0000 (21:53 +0000)]
Add a .cvsignore file.

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

17 years agoReplace llvm_gcc_supports_ada and llvm_gcc_supports_objc with just a single
Reid Spencer [Sat, 21 Apr 2007 21:45:51 +0000 (21:45 +0000)]
Replace llvm_gcc_supports_ada and llvm_gcc_supports_objc with just a single
llvm_gcc_supports function that takes the language as an argument. Base that
function on the new LLVMGCC_LANGS configured variable so that we don't have
to execute feature checks during the test run.

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

17 years agoPass the LLVMGCC_LANGS variable through to Tcl.
Reid Spencer [Sat, 21 Apr 2007 21:43:18 +0000 (21:43 +0000)]
Pass the LLVMGCC_LANGS variable through to Tcl.

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

17 years agoRegenerate for detection of llvm-gcc supported languages
Reid Spencer [Sat, 21 Apr 2007 21:28:52 +0000 (21:28 +0000)]
Regenerate for detection of llvm-gcc supported languages

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

17 years agoAdd support for determining which languages the llvm-gcc front end
Reid Spencer [Sat, 21 Apr 2007 21:28:12 +0000 (21:28 +0000)]
Add support for determining which languages the llvm-gcc front end
supports.

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

17 years agoX86 TLS: Implement review feedback.
Lauro Ramos Venancio [Sat, 21 Apr 2007 20:56:26 +0000 (20:56 +0000)]
X86 TLS: Implement review feedback.

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

17 years agollvm-dg.exp is dead, remove it.
Reid Spencer [Sat, 21 Apr 2007 20:48:14 +0000 (20:48 +0000)]
llvm-dg.exp is dead, remove it.

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

17 years agoFailure.sh is dead, remove it.
Reid Spencer [Sat, 21 Apr 2007 20:46:55 +0000 (20:46 +0000)]
Failure.sh is dead, remove it.

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

17 years agoUse the llvm_supports_target function to prevent running of tests for
Reid Spencer [Sat, 21 Apr 2007 20:41:27 +0000 (20:41 +0000)]
Use the llvm_supports_target function to prevent running of tests for
targets that LLVM is not configured to support.

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

17 years agoAdd the llvm_supports_target function.
Reid Spencer [Sat, 21 Apr 2007 20:40:17 +0000 (20:40 +0000)]
Add the llvm_supports_target function.

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

17 years agoAdd the TARGETS_TO_BUILD variable.
Reid Spencer [Sat, 21 Apr 2007 20:39:26 +0000 (20:39 +0000)]
Add the TARGETS_TO_BUILD variable.

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

17 years agoTest if the compiler supports Ada, and enable Ada tests if so. While I was
Duncan Sands [Sat, 21 Apr 2007 20:20:47 +0000 (20:20 +0000)]
Test if the compiler supports Ada, and enable Ada tests if so.  While I was
there, delete a temporary file the objc test forgot to delete.

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

17 years agoAlways print the same "PR" information in the same location (just after
Reid Spencer [Sat, 21 Apr 2007 18:53:12 +0000 (18:53 +0000)]
Always print the same "PR" information in the same location (just after
the test name) in all cases (PASS, XPASS, FAIL, XFAIL). This makes the
output consistent and more amenable to parsing by nightly test.

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

17 years agoPut failure information on a separate line. Hopefully this unbreaks the
Reid Spencer [Sat, 21 Apr 2007 18:46:52 +0000 (18:46 +0000)]
Put failure information on a separate line. Hopefully this unbreaks the
nightly tester which expects the FAIL: line to only have the test name on
it.

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

17 years agoRevert Christopher Lamb's load/store alignment changes.
Reid Spencer [Sat, 21 Apr 2007 18:36:27 +0000 (18:36 +0000)]
Revert Christopher Lamb's load/store alignment changes.

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

17 years agoWe only need one putchar which gives it a shot at getting matched by its
Reid Spencer [Sat, 21 Apr 2007 17:11:45 +0000 (17:11 +0000)]
We only need one putchar which gives it a shot at getting matched by its
users.

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

17 years agoMake enum-valued bitfield large enough to avoid interpretation as negative values...
Jeff Cohen [Sat, 21 Apr 2007 16:29:37 +0000 (16:29 +0000)]
Make enum-valued bitfield large enough to avoid interpretation as negative values in VC++.

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

17 years agoFix breakage of bytecode reader when built with VC++.
Jeff Cohen [Sat, 21 Apr 2007 15:29:13 +0000 (15:29 +0000)]
Fix breakage of bytecode reader when built with VC++.

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

17 years agoThe expression "SubclassData = (SubclassData & ~1) | (V) ? 1 : 0;" does not do what
Jeff Cohen [Sat, 21 Apr 2007 14:32:59 +0000 (14:32 +0000)]
The expression "SubclassData = (SubclassData & ~1) | (V) ? 1 : 0;" does not do what
was intended!  | has higher precedence than ?.  Caught by Visual Studio.

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

17 years agoadd support for alignment attributes on load/store instructions
Christopher Lamb [Sat, 21 Apr 2007 08:16:25 +0000 (08:16 +0000)]
add support for alignment attributes on load/store instructions

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

17 years agoMake PredicateSimplifier not use DominatorTree.
Owen Anderson [Sat, 21 Apr 2007 07:38:12 +0000 (07:38 +0000)]
Make PredicateSimplifier not use DominatorTree.

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

17 years agoFix a comment.
Owen Anderson [Sat, 21 Apr 2007 07:12:44 +0000 (07:12 +0000)]
Fix a comment.

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

17 years agoFix some null checks to actually test the part that needs checking.
Owen Anderson [Sat, 21 Apr 2007 07:04:45 +0000 (07:04 +0000)]
Fix some null checks to actually test the part that needs checking.

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

17 years agomake this portable to 64-bit hosts
Chris Lattner [Sat, 21 Apr 2007 03:35:28 +0000 (03:35 +0000)]
make this portable to 64-bit hosts

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

17 years agoBug fix; add super-registers sets.
Evan Cheng [Sat, 21 Apr 2007 00:55:29 +0000 (00:55 +0000)]
Bug fix; add super-registers sets.

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

17 years agoAdd super-register set.
Evan Cheng [Sat, 21 Apr 2007 00:54:06 +0000 (00:54 +0000)]
Add super-register set.

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

17 years agoReset vertex.
Devang Patel [Sat, 21 Apr 2007 00:36:45 +0000 (00:36 +0000)]
Reset vertex.
Fix http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070416/048092.html

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

17 years agoNew test case.
Devang Patel [Sat, 21 Apr 2007 00:34:37 +0000 (00:34 +0000)]
New test case.

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

17 years agoFix a bug that prevented the JIT from working correctly after llvm_shutdown.
Chris Lattner [Sat, 21 Apr 2007 00:12:18 +0000 (00:12 +0000)]
Fix a bug that prevented the JIT from working correctly after llvm_shutdown.
Pass info objects are initialized by static ctors, so deleting them at
llvm_shutdown time prevents resurrection from working.

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

17 years agoFix regressions introduced by my previous patch: opt calls verifier in a
Chris Lattner [Fri, 20 Apr 2007 23:59:29 +0000 (23:59 +0000)]
Fix regressions introduced by my previous patch: opt calls verifier in a
way that the "Mod" ivar was not getting set.

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

17 years agoAllow the lowering of ISD::GLOBAL_OFFSET_TABLE.
Lauro Ramos Venancio [Fri, 20 Apr 2007 23:02:39 +0000 (23:02 +0000)]
Allow the lowering of ISD::GLOBAL_OFFSET_TABLE.

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

17 years agoavoid mutating a global in an accessor
Chris Lattner [Fri, 20 Apr 2007 22:57:20 +0000 (22:57 +0000)]
avoid mutating a global in an accessor

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

17 years agofit in 80 cols
Chris Lattner [Fri, 20 Apr 2007 22:40:40 +0000 (22:40 +0000)]
fit in 80 cols

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

17 years agoComment out usage of write() for now.
Jeff Cohen [Fri, 20 Apr 2007 22:40:10 +0000 (22:40 +0000)]
Comment out usage of write() for now.

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

17 years agorename JIT::state -> JIT::jitstate to avoid shadowing ExecutionEngine::state
Chris Lattner [Fri, 20 Apr 2007 22:40:05 +0000 (22:40 +0000)]
rename JIT::state -> JIT::jitstate to avoid shadowing ExecutionEngine::state

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

17 years agoFix a problem where primitive types lose their name after llvm_shutdown is called.
Chris Lattner [Fri, 20 Apr 2007 22:33:47 +0000 (22:33 +0000)]
Fix a problem where primitive types lose their name after llvm_shutdown is called.
This also reduces the amount of work done at static construction time.

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

17 years agocatch a case that was biting jeffc
Chris Lattner [Fri, 20 Apr 2007 21:48:08 +0000 (21:48 +0000)]
catch a case that was biting jeffc

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

17 years agoImplement "general dynamic", "initial exec" and "local exec" TLS models for
Lauro Ramos Venancio [Fri, 20 Apr 2007 21:38:10 +0000 (21:38 +0000)]
Implement "general dynamic", "initial exec" and "local exec" TLS models for
X86 32 bits.

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

17 years agoAdd sub-registers set accessor.
Evan Cheng [Fri, 20 Apr 2007 21:28:05 +0000 (21:28 +0000)]
Add sub-registers set accessor.

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

17 years agoEnable Objective-C tests.
Devang Patel [Fri, 20 Apr 2007 21:24:01 +0000 (21:24 +0000)]
Enable Objective-C tests.

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

17 years agoSpecify S registers as D registers' sub-registers.
Evan Cheng [Fri, 20 Apr 2007 21:20:10 +0000 (21:20 +0000)]
Specify S registers as D registers' sub-registers.

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

17 years agoSpecify sub-register relations. e.g. RAX: [EAX], EAX: [AX], AX: [AL,AH].
Evan Cheng [Fri, 20 Apr 2007 21:15:21 +0000 (21:15 +0000)]
Specify sub-register relations. e.g. RAX: [EAX], EAX: [AX], AX: [AL,AH].

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

17 years agoAdd sub-registers sets.
Evan Cheng [Fri, 20 Apr 2007 21:13:46 +0000 (21:13 +0000)]
Add sub-registers sets.

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

17 years agoAdd sub-register sets.
Evan Cheng [Fri, 20 Apr 2007 21:11:22 +0000 (21:11 +0000)]
Add sub-register sets.

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

17 years agotest
Chris Lattner [Fri, 20 Apr 2007 20:49:25 +0000 (20:49 +0000)]
test

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

17 years agotest commit
Chris Lattner [Fri, 20 Apr 2007 20:46:43 +0000 (20:46 +0000)]
test commit

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

17 years agotest commit
Chris Lattner [Fri, 20 Apr 2007 20:42:36 +0000 (20:42 +0000)]
test commit

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

17 years agoadd a crazy idea
Chris Lattner [Fri, 20 Apr 2007 20:18:43 +0000 (20:18 +0000)]
add a crazy idea

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

17 years agoAvoid recursion.
Devang Patel [Fri, 20 Apr 2007 20:04:37 +0000 (20:04 +0000)]
Avoid recursion.

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

17 years agoMove more passes to using ETForest instead of DominatorTree.
Owen Anderson [Fri, 20 Apr 2007 06:27:13 +0000 (06:27 +0000)]
Move more passes to using ETForest instead of DominatorTree.

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

17 years agoAdd null checks and const-ify these accessors.
Owen Anderson [Fri, 20 Apr 2007 05:44:16 +0000 (05:44 +0000)]
Add null checks and const-ify these accessors.

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

17 years agoTest check in
Christopher Lamb [Fri, 20 Apr 2007 05:05:24 +0000 (05:05 +0000)]
Test check in

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

17 years agoremove cruft
Chris Lattner [Fri, 20 Apr 2007 04:45:58 +0000 (04:45 +0000)]
remove cruft

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

17 years agoFix a very strange assertion message, patch by Christopher Lamb
Chris Lattner [Fri, 20 Apr 2007 03:27:36 +0000 (03:27 +0000)]
Fix a very strange assertion message, patch by Christopher Lamb
 CVS: ----------------------------------------------------------------------

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

17 years agoFix test.
Evan Cheng [Fri, 20 Apr 2007 00:45:36 +0000 (00:45 +0000)]
Fix test.

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

17 years agoMake Microsoft assembler and linker happy.
Jeff Cohen [Fri, 20 Apr 2007 00:33:54 +0000 (00:33 +0000)]
Make Microsoft assembler and linker happy.

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

17 years agoFix a message, patch by Christopher Lamb.
Chris Lattner [Thu, 19 Apr 2007 18:42:38 +0000 (18:42 +0000)]
Fix a message, patch by Christopher Lamb.

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

17 years agoFix a bug in getFrameRegister.
Lauro Ramos Venancio [Thu, 19 Apr 2007 14:09:38 +0000 (14:09 +0000)]
Fix a bug in getFrameRegister.
Reported by Raul Herbster.

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

17 years agoMake use of ConstantInt::isZero instead of ConstantInt::isNullValue.
Zhou Sheng [Thu, 19 Apr 2007 05:39:12 +0000 (05:39 +0000)]
Make use of ConstantInt::isZero instead of ConstantInt::isNullValue.

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

17 years agoMake the operations of APInt variables more efficient.
Zhou Sheng [Thu, 19 Apr 2007 05:35:00 +0000 (05:35 +0000)]
Make the operations of APInt variables more efficient.

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

17 years agoFix some VC++ warnings.
Jeff Cohen [Thu, 19 Apr 2007 02:04:09 +0000 (02:04 +0000)]
Fix some VC++ warnings.

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

17 years agoRevert Owen's last check-in. This is breaking Mac OS X / PPC llvm-gcc bootstrap.
Evan Cheng [Wed, 18 Apr 2007 22:39:00 +0000 (22:39 +0000)]
Revert Owen's last check-in. This is breaking Mac OS X / PPC llvm-gcc bootstrap.

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

17 years agoProvide link.
Jeff Cohen [Wed, 18 Apr 2007 17:26:14 +0000 (17:26 +0000)]
Provide link.

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

17 years agoFix the spelling of the prefetchnta instruction.
Dan Gohman [Wed, 18 Apr 2007 14:09:14 +0000 (14:09 +0000)]
Fix the spelling of the prefetchnta instruction.

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

17 years agoRevert changes that caused breakage.
Owen Anderson [Wed, 18 Apr 2007 06:46:57 +0000 (06:46 +0000)]
Revert changes that caused breakage.

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

17 years agoSwitch more uses of DominatorTree over to ETForest.
Owen Anderson [Wed, 18 Apr 2007 05:43:13 +0000 (05:43 +0000)]
Switch more uses of DominatorTree over to ETForest.

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

17 years agoUse ETForest instead of DominatorTree.
Owen Anderson [Wed, 18 Apr 2007 05:25:43 +0000 (05:25 +0000)]
Use ETForest instead of DominatorTree.

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

17 years agoAdd accessor to get the blocks immediately dominated by a given block to ETForest.
Owen Anderson [Wed, 18 Apr 2007 05:25:09 +0000 (05:25 +0000)]
Add accessor to get the blocks immediately dominated by a given block to ETForest.

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

17 years agoVarInfo::UsedBlocks is no longer used. Remove.
Evan Cheng [Wed, 18 Apr 2007 05:04:38 +0000 (05:04 +0000)]
VarInfo::UsedBlocks is no longer used. Remove.

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

17 years agoUse ETForest instead of DominatorTree.
Owen Anderson [Wed, 18 Apr 2007 04:55:33 +0000 (04:55 +0000)]
Use ETForest instead of DominatorTree.

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

17 years agoUse new ETForest accessor.
Owen Anderson [Wed, 18 Apr 2007 04:46:35 +0000 (04:46 +0000)]
Use new ETForest accessor.

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

17 years agoUse ETForest instead of DominatorTree.
Owen Anderson [Wed, 18 Apr 2007 04:39:32 +0000 (04:39 +0000)]
Use ETForest instead of DominatorTree.

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

17 years agoAdd an accessor to make ETForest more useful.
Owen Anderson [Wed, 18 Apr 2007 04:38:39 +0000 (04:38 +0000)]
Add an accessor to make ETForest more useful.

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

17 years agoallow SRL to simplify its operands, as it doesn't demand all bits as input.
Chris Lattner [Wed, 18 Apr 2007 03:06:49 +0000 (03:06 +0000)]
allow SRL to simplify its operands, as it doesn't demand all bits as input.

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

17 years agoWhen replacing a node in SimplifyDemandedBits, if the old node used any
Chris Lattner [Wed, 18 Apr 2007 03:05:22 +0000 (03:05 +0000)]
When replacing a node in SimplifyDemandedBits, if the old node used any
single-use nodes, they will be dead soon.  Make sure to remove them before
processing other nodes.  This implements CodeGen/X86/shl_elim.ll

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

17 years agonew testcase
Chris Lattner [Wed, 18 Apr 2007 03:04:37 +0000 (03:04 +0000)]
new testcase

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

17 years agofix a pasto
Chris Lattner [Wed, 18 Apr 2007 03:01:40 +0000 (03:01 +0000)]
fix a pasto

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

17 years agoNew crasher test case.
Evan Cheng [Wed, 18 Apr 2007 02:35:10 +0000 (02:35 +0000)]
New crasher test case.

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

17 years agoDon't populate TryAgainList when coalescing only physical registers with virtual...
Evan Cheng [Wed, 18 Apr 2007 02:30:19 +0000 (02:30 +0000)]
Don't populate TryAgainList when coalescing only physical registers with virtual registers.

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

17 years agoCache DT[*SI] lookup.
Devang Patel [Wed, 18 Apr 2007 01:19:55 +0000 (01:19 +0000)]
Cache DT[*SI] lookup.

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

17 years agodon't access argument list of prototypes
Chris Lattner [Wed, 18 Apr 2007 00:57:22 +0000 (00:57 +0000)]
don't access argument list of prototypes

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

17 years agoFix
Devang Patel [Wed, 18 Apr 2007 00:53:01 +0000 (00:53 +0000)]
Fix
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070416/047971.html

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

17 years agoNew test.
Devang Patel [Wed, 18 Apr 2007 00:51:43 +0000 (00:51 +0000)]
New test.

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

17 years agowhat's an & between friends?
Chris Lattner [Wed, 18 Apr 2007 00:43:05 +0000 (00:43 +0000)]
what's an & between friends?

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

17 years agoIncrement use count of new virtuals created during PHI elimination.
Evan Cheng [Wed, 18 Apr 2007 00:36:11 +0000 (00:36 +0000)]
Increment use count of new virtuals created during PHI elimination.

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

17 years agoBe more careful when inserting reused instructions. This fixes CodeGen/Generic/2007...
Chris Lattner [Tue, 17 Apr 2007 23:43:50 +0000 (23:43 +0000)]
Be more careful when inserting reused instructions.  This fixes CodeGen/Generic/2007-04-17-lsr-crash.ll

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

17 years agonew testcase
Chris Lattner [Tue, 17 Apr 2007 23:43:31 +0000 (23:43 +0000)]
new testcase

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

17 years agoOops. Didn't mean to check in a quick hack.
Evan Cheng [Tue, 17 Apr 2007 23:33:39 +0000 (23:33 +0000)]
Oops. Didn't mean to check in a quick hack.

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

17 years agoFix a bug in my previous patch, grabbing the shift amount width from the
Chris Lattner [Tue, 17 Apr 2007 22:53:02 +0000 (22:53 +0000)]
Fix a bug in my previous patch, grabbing the shift amount width from the
wrong operand.

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

17 years agodag combiner just got better at pruning bits. This fixes CodeGen/ARM/rev.ll
Chris Lattner [Tue, 17 Apr 2007 22:39:58 +0000 (22:39 +0000)]
dag combiner just got better at pruning bits.  This fixes CodeGen/ARM/rev.ll

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

17 years agoFold (x << c1)>> c2 into a single shift if the bits shifted out aren't used.
Chris Lattner [Tue, 17 Apr 2007 21:14:16 +0000 (21:14 +0000)]
Fold (x << c1)>> c2 into a single shift if the bits shifted out aren't used.

This compiles:
int baz(long long a) { return (short)(((int)(a >>24)) >> 9); }

into:
_baz:
        srwi r2, r3, 1
        extsh r3, r2
        blr

on PPC, instead of:
_baz:
        slwi r2, r3, 8
        srwi r2, r2, 9
        extsh r3, r2
        blr

GCC produces:
_baz:
        srwi r10,r4,24
        insrwi r10,r3,24,0
        srawi r9,r3,24
        srawi r3,r10,9
        extsh r3,r3
        blr

This implements CodeGen/PowerPC/shl_elim.ll

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

17 years agonew testcase
Chris Lattner [Tue, 17 Apr 2007 21:12:26 +0000 (21:12 +0000)]
new testcase

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

17 years agoUse // not ; since this is C.
Duncan Sands [Tue, 17 Apr 2007 20:50:33 +0000 (20:50 +0000)]
Use // not ; since this is C.

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

17 years agoCopy coalescing change to prevent a physical register from being pin to a
Evan Cheng [Tue, 17 Apr 2007 20:32:26 +0000 (20:32 +0000)]
Copy coalescing change to prevent a physical register from being pin to a
long live interval that has low usage density.
1. Change order of coalescing to join physical registers with virtual
   registers first before virtual register intervals become too long.
2. Check size and usage density to determine if it's worthwhile to join.
3. If joining is aborted, assign virtual register live interval allocation
   preference field to the physical register.
4. Register allocator should try to allocate to the preferred register
   first (if available) to create identify moves that can be eliminated.

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

17 years agoNew test case.
Devang Patel [Tue, 17 Apr 2007 20:29:12 +0000 (20:29 +0000)]
New test case.

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