]> granicus.if.org Git - llvm/log
llvm
13 years agoUpdate the release notes. release_29 origin/release_29
Bill Wendling [Thu, 7 Apr 2011 04:28:16 +0000 (04:28 +0000)]
Update the release notes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@129054 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMention the 2.9 release.
Bill Wendling [Thu, 31 Mar 2011 20:38:22 +0000 (20:38 +0000)]
Mention the 2.9 release.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128666 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMerging r128577
Bill Wendling [Wed, 30 Mar 2011 21:44:24 +0000 (21:44 +0000)]
Merging r128577

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128579 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r127800 into '.':
Bill Wendling [Sun, 27 Mar 2011 00:48:12 +0000 (00:48 +0000)]
--- Merging r127800 into '.':
U    test/CodeGen/X86/h-registers-1.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128363 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMerge in fix for PR9561.
Bill Wendling [Sun, 27 Mar 2011 00:42:33 +0000 (00:42 +0000)]
Merge in fix for PR9561.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128354 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago* Change version to 2.9.
Bill Wendling [Fri, 25 Mar 2011 07:56:32 +0000 (07:56 +0000)]
* Change version to 2.9.
* Default to optimizations enabled.
* Default to assertions disabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128269 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r127239 into '.':
Bill Wendling [Fri, 25 Mar 2011 06:26:58 +0000 (06:26 +0000)]
--- Merging r127239 into '.':
U    test/Makefile
U    Makefile.rules
--- Merging r127240 into '.':
U    utils/llvm-lit/Makefile
--- Merging r127726 into '.':
U    lib/Support/raw_ostream.cpp
--- Merging r127730 into '.':
U    test/CodeGen/X86/dyn-stackalloc.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128259 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r127731 into '.':
Bill Wendling [Fri, 25 Mar 2011 06:22:54 +0000 (06:22 +0000)]
--- Merging r127731 into '.':
U    test/CodeGen/X86/byval2.ll
U    test/CodeGen/X86/byval4.ll
U    test/CodeGen/X86/byval.ll
U    test/CodeGen/X86/byval3.ll
U    test/CodeGen/X86/byval5.ll
--- Merging r127732 into '.':
U    test/CodeGen/X86/stdarg.ll
U    test/CodeGen/X86/fold-mul-lohi.ll
U    test/CodeGen/X86/scalar-min-max-fill-operand.ll
U    test/CodeGen/X86/tailcallbyval64.ll
U    test/CodeGen/X86/stride-reuse.ll
U    test/CodeGen/X86/sse-align-3.ll
U    test/CodeGen/X86/sse-commute.ll
U    test/CodeGen/X86/stride-nine-with-base-reg.ll
U    test/CodeGen/X86/coalescer-commute2.ll
U    test/CodeGen/X86/sse-align-7.ll
U    test/CodeGen/X86/sse_reload_fold.ll
U    test/CodeGen/X86/sse-align-0.ll
--- Merging r127733 into '.':
U    test/CodeGen/X86/peep-vector-extract-concat.ll
U    test/CodeGen/X86/pmulld.ll
U    test/CodeGen/X86/widen_load-0.ll
U    test/CodeGen/X86/v2f32.ll
U    test/CodeGen/X86/apm.ll
U    test/CodeGen/X86/h-register-store.ll
U    test/CodeGen/X86/h-registers-0.ll
--- Merging r127734 into '.':
U    test/CodeGen/X86/2007-01-08-X86-64-Pointer.ll
U    test/CodeGen/X86/convert-2-addr-3-addr-inc64.ll
U    test/CodeGen/X86/avoid-lea-scale2.ll
U    test/CodeGen/X86/lea-3.ll
U    test/CodeGen/X86/vec_set-8.ll
U    test/CodeGen/X86/i64-mem-copy.ll
U    test/CodeGen/X86/x86-64-malloc.ll
U    test/CodeGen/X86/mmx-copy-gprs.ll
U    test/CodeGen/X86/vec_shuffle-17.ll
U    test/CodeGen/X86/2007-07-18-Vector-Extract.ll
--- Merging r127775 into '.':
U    test/CodeGen/X86/constant-pool-remat-0.ll
--- Merging r127872 into '.':
U    utils/lit/lit/TestingConfig.py
U    lib/Support/raw_ostream.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128258 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r128212 into '.':
Bill Wendling [Thu, 24 Mar 2011 18:07:13 +0000 (18:07 +0000)]
--- Merging r128212 into '.':
U    lib/Transforms/Scalar/CodeGenPrepare.cpp
--- Merging r128217 into '.':
G    lib/Transforms/Scalar/CodeGenPrepare.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128223 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r128203 into '.':
Bill Wendling [Thu, 24 Mar 2011 07:56:16 +0000 (07:56 +0000)]
--- Merging r128203 into '.':
U    lib/Target/ARM/ARMBaseInstrInfo.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128207 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r127723 into '.':
Bill Wendling [Thu, 24 Mar 2011 06:17:12 +0000 (06:17 +0000)]
--- Merging r127723 into '.':
U    lib/Support/Windows/Path.inc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128202 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoPR9505:
Bill Wendling [Thu, 24 Mar 2011 06:12:07 +0000 (06:12 +0000)]
PR9505:
--- Merging r127858 into '.':
U    tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128201 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r127981 into '.':
Bill Wendling [Thu, 24 Mar 2011 06:00:53 +0000 (06:00 +0000)]
--- Merging r127981 into '.':
U    include/llvm/Target/TargetLowering.h
U    lib/Target/X86/X86ISelLowering.cpp
U    lib/Target/X86/X86ISelLowering.h
U    lib/Target/ARM/ARMISelLowering.h
U    lib/Target/ARM/ARMISelLowering.cpp
U    lib/Transforms/Scalar/CodeGenPrepare.cpp
--- Merging r128194 into '.':
G    lib/Transforms/Scalar/CodeGenPrepare.cpp
--- Merging r128196 into '.':
G    lib/Transforms/Scalar/CodeGenPrepare.cpp
--- Merging r128197 into '.':
A    test/CodeGen/X86/tailcall-returndup-void.ll
G    lib/Transforms/Scalar/CodeGenPrepare.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128200 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r127871 into '.':
Bill Wendling [Wed, 23 Mar 2011 22:06:16 +0000 (22:06 +0000)]
--- Merging r127871 into '.':
U    lib/Support/APFloat.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128174 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r128100 into '.':
Bill Wendling [Tue, 22 Mar 2011 19:45:56 +0000 (19:45 +0000)]
--- Merging r128100 into '.':
U    lib/Target/ARM/ARMFastISel.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128101 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix Win64 va_arg.
Bill Wendling [Tue, 22 Mar 2011 00:19:46 +0000 (00:19 +0000)]
Fix Win64 va_arg.
--- Merging r127328 into '.':
U    test/CodeGen/X86/win64_vararg.ll
U    lib/Target/X86/X86ISelLowering.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128044 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFor PR9500.
Bill Wendling [Tue, 22 Mar 2011 00:16:16 +0000 (00:16 +0000)]
For PR9500.
--- Merging r128041 into '.':
U    test/CodeGen/X86/fast-isel-gep.ll
U    lib/Target/X86/X86FastISel.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128042 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r127780 into '.':
Bill Wendling [Mon, 21 Mar 2011 22:49:24 +0000 (22:49 +0000)]
--- Merging r127780 into '.':
U    test/MC/ELF/tls-i386.s
U    lib/MC/MCELFStreamer.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@128032 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFor PR2928
Bill Wendling [Tue, 15 Mar 2011 20:00:14 +0000 (20:00 +0000)]
For PR2928
--- Merging r127325 into '.':
U    Makefile.rules

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127689 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFor PR9480:
Bill Wendling [Mon, 14 Mar 2011 23:06:23 +0000 (23:06 +0000)]
For PR9480:
--- Merging r127241 into '.':
U    lib/Support/regcomp.c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127631 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Merging r127464 into '.':
Bill Wendling [Mon, 14 Mar 2011 20:06:27 +0000 (20:06 +0000)]
--- Merging r127464 into '.':
U    test/Transforms/InstCombine/select.ll
U    lib/Transforms/InstCombine/InstCombineSelect.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127609 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove toy code from cmake script.
Oscar Fuentes [Sun, 13 Mar 2011 16:10:40 +0000 (16:10 +0000)]
Remove toy code from cmake script.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127567 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMerge r127441 from mainline.
Eric Christopher [Fri, 11 Mar 2011 01:10:05 +0000 (01:10 +0000)]
Merge r127441 from mainline.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127443 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMerge r127263 from mainline, fixes PR9427 for 2.9.
Eric Christopher [Fri, 11 Mar 2011 00:11:06 +0000 (00:11 +0000)]
Merge r127263 from mainline, fixes PR9427 for 2.9.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127437 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMerge r127298 from mainline.
Eric Christopher [Thu, 10 Mar 2011 23:58:13 +0000 (23:58 +0000)]
Merge r127298 from mainline.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127435 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFor PR9438:
Bill Wendling [Thu, 10 Mar 2011 01:09:20 +0000 (01:09 +0000)]
For PR9438:
--- Merging r127350 into '.':
D    test/CodeGen/X86/2009-03-11-CoalescerBug.ll

--- Merging r127351 into '.':
A    test/CodeGen/X86/2011-03-09-Physreg-Coalescing.ll
U    test/CodeGen/X86/fold-pcmpeqd-2.ll
U    lib/CodeGen/SimpleRegisterCoalescing.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127384 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoCMake: fix handling of engine' link components.
Oscar Fuentes [Wed, 9 Mar 2011 21:21:29 +0000 (21:21 +0000)]
CMake: fix handling of engine' link components.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127361 91177308-0d34-0410-b5e6-96231b3b80d8

14 years ago--- Reverse-merging r126896 into '.':
Bill Wendling [Tue, 8 Mar 2011 21:44:29 +0000 (21:44 +0000)]
--- Reverse-merging r126896 into '.':
D    test/FrontendC/2011-03-02-UnionInitializer.c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127276 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMerge r127264:
Bill Wendling [Tue, 8 Mar 2011 21:40:31 +0000 (21:40 +0000)]
Merge r127264:
Fix the build for MSVC 9 whose upper_bound() wants to compare elements in the
sorted array.

Patch by Olaf Krzikalla!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127273 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDon't show commands.
Bill Wendling [Tue, 8 Mar 2011 08:57:10 +0000 (08:57 +0000)]
Don't show commands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127226 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoCreating LLVM 2.9 release branch.
Bill Wendling [Tue, 8 Mar 2011 02:56:50 +0000 (02:56 +0000)]
Creating LLVM 2.9 release branch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_29@127210 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoA few more tests for instruction encodings.
Bill Wendling [Tue, 8 Mar 2011 02:51:48 +0000 (02:51 +0000)]
A few more tests for instruction encodings.

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

14 years agoTurn on list-ilp scheduling by default on x86 and x86-64, fix up
Eric Christopher [Tue, 8 Mar 2011 02:42:25 +0000 (02:42 +0000)]
Turn on list-ilp scheduling by default on x86 and x86-64, fix up
testcases accordingly. Some are currently xfailed and will be filed
as bugs to be fixed or understood.

Performance results:

roughly neutral on SPEC
some micro benchmarks in the llvm suite are up between 100 and 150%, only
a pair of regressions that are due to be investigated

john-the-ripper saw:
10% improvement in traditional DES
8% improvement in BSDI DES
59% improvement in FreeBSD MD5
67% improvement in OpenBSD Blowfish
14% improvement in LM DES

Small compile time impact.

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

14 years agoFurther improvements to pre-RA-sched=list-ilp.
Andrew Trick [Tue, 8 Mar 2011 01:51:56 +0000 (01:51 +0000)]
Further improvements to pre-RA-sched=list-ilp.
This change uses the MaxReorderWindow for both height and depth, which
tends to limit the negative effects of high register pressure.

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

14 years agoFix a compiler crash where a Glue value had multiple uses. Radar 9049552.
Bob Wilson [Tue, 8 Mar 2011 01:17:20 +0000 (01:17 +0000)]
Fix a compiler crash where a Glue value had multiple uses.  Radar 9049552.

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

14 years agoFix comment typos.
Bob Wilson [Tue, 8 Mar 2011 01:17:16 +0000 (01:17 +0000)]
Fix comment typos.

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

14 years agoRename the narrow shift right immediate operands to "shr_imm*" operands. Also
Bill Wendling [Mon, 7 Mar 2011 23:38:41 +0000 (23:38 +0000)]
Rename the narrow shift right immediate operands to "shr_imm*" operands. Also
expand the testing of the narrowing shift right instructions.

No functionality change.

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

14 years agoLet shrinkToUses optionally return a list of now dead machine instructions.
Jakob Stoklund Olesen [Mon, 7 Mar 2011 23:29:10 +0000 (23:29 +0000)]
Let shrinkToUses optionally return a list of now dead machine instructions.

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

14 years agoTypos.
Eric Christopher [Mon, 7 Mar 2011 22:48:16 +0000 (22:48 +0000)]
Typos.

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

14 years agoPreserve line no. info.
Devang Patel [Mon, 7 Mar 2011 22:43:45 +0000 (22:43 +0000)]
Preserve line no. info.
Radar 9097659

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

14 years agoMake the UselessRegs argument optional in the LiveRangeEdit constructor.
Jakob Stoklund Olesen [Mon, 7 Mar 2011 22:42:16 +0000 (22:42 +0000)]
Make the UselessRegs argument optional in the LiveRangeEdit constructor.

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

14 years agoMove getRegPressureLimit() from TargetLoweringInfo to TargetRegisterInfo.
Cameron Zwarich [Mon, 7 Mar 2011 21:56:36 +0000 (21:56 +0000)]
Move getRegPressureLimit() from TargetLoweringInfo to TargetRegisterInfo.

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

14 years agoAdd test for r127138.
Rafael Espindola [Mon, 7 Mar 2011 21:28:14 +0000 (21:28 +0000)]
Add test for r127138.

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

14 years agoOften GCC can see that NumBuckets is zero here, resulting in a warning
Duncan Sands [Mon, 7 Mar 2011 19:38:38 +0000 (19:38 +0000)]
Often GCC can see that NumBuckets is zero here, resulting in a warning
about possibly swapped memset parameters.  Avoid the warning.

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

14 years agoTidy up.
Jim Grosbach [Mon, 7 Mar 2011 19:28:43 +0000 (19:28 +0000)]
Tidy up.

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

14 years agoHandle the special case of registers begin redefined by early-clobber defs.
Jakob Stoklund Olesen [Mon, 7 Mar 2011 18:56:16 +0000 (18:56 +0000)]
Handle the special case of registers begin redefined by early-clobber defs.

In this case, the value need to be available at the load index instead of the
normal use index.

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

14 years agoUse the correct LHS type when determining the legalization of a shift's RHS type.
Owen Anderson [Mon, 7 Mar 2011 18:29:47 +0000 (18:29 +0000)]
Use the correct LHS type when determining the legalization of a shift's RHS type.

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

14 years agoptx: Fix calling convention printing in AsmWriter.cpp
Justin Holewinski [Mon, 7 Mar 2011 14:32:30 +0000 (14:32 +0000)]
ptx: Fix calling convention printing in AsmWriter.cpp

This allows LLVM IR using ptx_kernel or ptx_device calling
conventions to be properly printed when emitted in text form.

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

14 years agoClarify that the result of an srem is only guaranteed to have the same sign as the
Duncan Sands [Mon, 7 Mar 2011 09:12:24 +0000 (09:12 +0000)]
Clarify that the result of an srem is only guaranteed to have the same sign as the
left-hand-side if the result is non-zero.

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

14 years agoDon't keep the log files around. Just pipe to a log file instead.
Bill Wendling [Mon, 7 Mar 2011 07:37:37 +0000 (07:37 +0000)]
Don't keep the log files around. Just pipe to a log file instead.

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

14 years agoFix tagging name.
Bill Wendling [Mon, 7 Mar 2011 07:37:12 +0000 (07:37 +0000)]
Fix tagging name.

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

14 years agoTry fixing mingw build.
Argyrios Kyrtzidis [Mon, 7 Mar 2011 05:35:01 +0000 (05:35 +0000)]
Try fixing mingw build.

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

14 years agoPrepend LD.Flags before LDFLAGS to avoid overriding necessary paths.
Eric Christopher [Mon, 7 Mar 2011 04:25:12 +0000 (04:25 +0000)]
Prepend LD.Flags before LDFLAGS to avoid overriding necessary paths.

Patch by Jack Howarth.

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

14 years agoTweak this test. We can analyze what happens and show that we still do the
Nick Lewycky [Mon, 7 Mar 2011 02:10:18 +0000 (02:10 +0000)]
Tweak this test. We can analyze what happens and show that we still do the
right thing, instead of merely being unable to analyze and the transform
doesn't occur.

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

14 years agoAdd more analysis of the sign bit of an srem instruction. If the LHS is negative
Nick Lewycky [Mon, 7 Mar 2011 01:50:10 +0000 (01:50 +0000)]
Add more analysis of the sign bit of an srem instruction. If the LHS is negative
then the result could go either way. If it's provably positive then so is the
srem. Fixes PR9343 #7!

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

14 years agoDo a compiler check that we use one of the types from PointerUnion[N], instead of...
Argyrios Kyrtzidis [Mon, 7 Mar 2011 01:30:20 +0000 (01:30 +0000)]
Do a compiler check that we use one of the types from PointerUnion[N], instead of a runtime check.

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

14 years agoWindows/PathV2.inc: Eliminate redundant condition. DWORD is unsigned.
NAKAMURA Takumi [Mon, 7 Mar 2011 00:12:53 +0000 (00:12 +0000)]
Windows/PathV2.inc: Eliminate redundant condition. DWORD is unsigned.

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

14 years agoDon't internalize available_externally functions. We already did the right
Rafael Espindola [Sun, 6 Mar 2011 23:41:34 +0000 (23:41 +0000)]
Don't internalize available_externally functions. We already did the right
thing for variables.

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

14 years agoremove another jeff link
Chris Lattner [Sun, 6 Mar 2011 23:00:33 +0000 (23:00 +0000)]
remove another jeff link

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

14 years agoTypo.
Eric Christopher [Sun, 6 Mar 2011 21:13:45 +0000 (21:13 +0000)]
Typo.

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

14 years agoConstantInt has some getters which return ConstantInt's or ConstantVector's of
Nick Lewycky [Sun, 6 Mar 2011 03:36:19 +0000 (03:36 +0000)]
ConstantInt has some getters which return ConstantInt's or ConstantVector's of
the value splatted into every element. Extend this to getTrue and getFalse which
by providing new overloads that take Types that are either i1 or <N x i1>. Use
it in InstCombine to add vector support to some code, fixing PR8469!

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

14 years agolib/CodeGen/AsmPrinter/CMakeLists.txt: Fix CMake build, following up to r127099.
NAKAMURA Takumi [Sun, 6 Mar 2011 00:13:15 +0000 (00:13 +0000)]
lib/CodeGen/AsmPrinter/CMakeLists.txt: Fix CMake build, following up to r127099.

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

14 years agoDisable a couple of experimental heuristics to get the best results from the current...
Andrew Trick [Sun, 6 Mar 2011 00:03:32 +0000 (00:03 +0000)]
Disable a couple of experimental heuristics to get the best results from the current implementation of -pre-RA-sched=list-ilp.

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

14 years agoAvoid zero-sized allocations when copying a fresh DenseMap.
Benjamin Kramer [Sat, 5 Mar 2011 22:00:28 +0000 (22:00 +0000)]
Avoid zero-sized allocations when copying a fresh DenseMap.

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

14 years agoRevert r127073: "Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for...
Jakob Stoklund Olesen [Sat, 5 Mar 2011 18:55:06 +0000 (18:55 +0000)]
Revert r127073: "Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for alternative of $(ECHO)."

It broke the llvm-gcc-native-mingw32 buildbot, and we need all of them to be green for the 2.9 branch.

Takumi, please reapply after we branch, preferably with a fix ;-)

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

14 years agoARM assembler stuff is crazy: for .setfp positive values of offset corresponds to...
Anton Korobeynikov [Sat, 5 Mar 2011 18:44:00 +0000 (18:44 +0000)]
ARM assembler stuff is crazy: for .setfp positive values of offset corresponds to "add" instruction, not to "sub" as in .pad case

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

14 years agoIn Thumb1 mode the constant might be materialized via the load from constpool. Emit...
Anton Korobeynikov [Sat, 5 Mar 2011 18:43:55 +0000 (18:43 +0000)]
In Thumb1 mode the constant might be materialized via the load from constpool. Emit unwinding information in case when this load from constpool is used to change the stack pointer in the prologue.

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

14 years agoImplement frame unwinding information emission for Thumb1. Not finished yet because...
Anton Korobeynikov [Sat, 5 Mar 2011 18:43:50 +0000 (18:43 +0000)]
Implement frame unwinding information emission for Thumb1. Not finished yet because there is no way given the constpool index to examine the actual entry: the reason is clones inserted by constant island pass, which are not tracked at all! The only connection is done during asmprinting time via magic label names which is really gross and needs to be eventually fixed.

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

14 years agoAdd unwind information emission for thumb stuff
Anton Korobeynikov [Sat, 5 Mar 2011 18:43:43 +0000 (18:43 +0000)]
Add unwind information emission for thumb stuff

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

14 years agoHandle MI flags inside Thumb2SizeReduction pass.
Anton Korobeynikov [Sat, 5 Mar 2011 18:43:38 +0000 (18:43 +0000)]
Handle MI flags inside Thumb2SizeReduction pass.

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

14 years agoPreliminary support for ARM frame save directives emission via MI flags.
Anton Korobeynikov [Sat, 5 Mar 2011 18:43:32 +0000 (18:43 +0000)]
Preliminary support for ARM frame save directives emission via MI flags.
This is just very first approximation how the stuff should be done
(e.g. ARM-only for now). More to follow.

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

14 years agoProvide hooks to set MI flags in MachineInstrBuilder
Anton Korobeynikov [Sat, 5 Mar 2011 18:43:20 +0000 (18:43 +0000)]
Provide hooks to set MI flags in MachineInstrBuilder

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

14 years agoSome first rudimentary support for ARM EHABI: print exception table in "text mode".
Anton Korobeynikov [Sat, 5 Mar 2011 18:43:15 +0000 (18:43 +0000)]
Some first rudimentary support for ARM EHABI: print exception table in "text mode".

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

14 years agoAdd FrameSetup MI flags
Anton Korobeynikov [Sat, 5 Mar 2011 18:43:04 +0000 (18:43 +0000)]
Add FrameSetup MI flags

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

14 years agoShorten AsmPrinterFlags filed to accomodate for future Flags field
Anton Korobeynikov [Sat, 5 Mar 2011 18:42:54 +0000 (18:42 +0000)]
Shorten AsmPrinterFlags filed to accomodate for future Flags field

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

14 years agoWork around a coalescer bug.
Jakob Stoklund Olesen [Sat, 5 Mar 2011 18:33:49 +0000 (18:33 +0000)]
Work around a coalescer bug.

The coalescer can in very rare cases leave too large live intervals around after
rematerializing cheap-as-a-move instructions.

Linear scan doesn't really care, but live range splitting gets very confused
when a live range is killed by a ghost instruction.

I will fix this properly in the coalescer after 2.9 branches.

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

14 years agoRemove unused conditional negate operations.
Bob Wilson [Sat, 5 Mar 2011 16:54:31 +0000 (16:54 +0000)]
Remove unused conditional negate operations.

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

14 years agoInstCombine: We know the number of items initially added to the worklist map, reserve...
Benjamin Kramer [Sat, 5 Mar 2011 16:43:46 +0000 (16:43 +0000)]
InstCombine: We know the number of items initially added to the worklist map, reserve space early to avoid rehashing.

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

14 years agoLazily allocate DenseMaps.
Benjamin Kramer [Sat, 5 Mar 2011 16:43:41 +0000 (16:43 +0000)]
Lazily allocate DenseMaps.

This makes lookup slightly more expensive but it's worth it, unused
DenseMaps are common in LLVM code apparently.

1% speedup on clang -O3 bzip2.c
4% speedup on clang -O3 oggenc.c (Release build of clang on i386/linux)

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

14 years agoptx: add basic intrinsic support
Che-Liang Chiou [Sat, 5 Mar 2011 14:17:37 +0000 (14:17 +0000)]
ptx: add basic intrinsic support

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

14 years agoBe explicit with abs(). Visual Studio workaround.
Andrew Trick [Sat, 5 Mar 2011 10:29:25 +0000 (10:29 +0000)]
Be explicit with abs(). Visual Studio workaround.

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

14 years agoutils/lit/lit/TestRunner.py: bash is available with MSYS on Python/W32. Then we can...
NAKAMURA Takumi [Sat, 5 Mar 2011 09:46:53 +0000 (09:46 +0000)]
utils/lit/lit/TestRunner.py: bash is available with MSYS on Python/W32. Then we can execute "bash tests".

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

14 years agoIntroduce $(ECHOPATH) to print DOSish path string on MSYS bash for alternative of...
NAKAMURA Takumi [Sat, 5 Mar 2011 09:46:45 +0000 (09:46 +0000)]
Introduce $(ECHOPATH) to print DOSish path string on MSYS bash for alternative of $(ECHO).

On mingw and python/w32, lit would not be expected to understand MSYS-style path.

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

14 years agoOn Windows hosts, Python scripts in test/Scripts did not accept binary files from...
NAKAMURA Takumi [Sat, 5 Mar 2011 09:46:36 +0000 (09:46 +0000)]
On Windows hosts, Python scripts in test/Scripts did not accept binary files from stdin. The environment variable "PYTHONUNBUFFERED" makes stdin as binary. Thanks to Danil Malyshev!

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

14 years agoFix for -sched-high-latency-cycles in sched=list-ilp mode.
Andrew Trick [Sat, 5 Mar 2011 09:18:16 +0000 (09:18 +0000)]
Fix for -sched-high-latency-cycles in sched=list-ilp mode.

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

14 years agoMissing "virtual" keyword. Jakob's review.
Andrew Trick [Sat, 5 Mar 2011 08:39:45 +0000 (08:39 +0000)]
Missing "virtual" keyword. Jakob's review.

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

14 years agoFix PR9398 - 10% of llc compile time is spent in Value::getNumUses. This reduces
Cameron Zwarich [Sat, 5 Mar 2011 08:12:26 +0000 (08:12 +0000)]
Fix PR9398 - 10% of llc compile time is spent in Value::getNumUses. This reduces
the percentage of time spent in CodeGenPrepare when llcing 403.gcc from 12.6% to
1.8% of total llc time.

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

14 years agoMissing comment.
Andrew Trick [Sat, 5 Mar 2011 08:04:11 +0000 (08:04 +0000)]
Missing comment.

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

14 years agoIncreased the register pressure limit on x86_64 from 8 to 12
Andrew Trick [Sat, 5 Mar 2011 08:00:22 +0000 (08:00 +0000)]
Increased the register pressure limit on x86_64 from 8 to 12
regs. This is the only change in this checkin that may affects the
default scheduler. With better register tracking and heuristics, it
doesn't make sense to artificially lower the register limit so much.

Added -sched-high-latency-cycles and X86InstrInfo::isHighLatencyDef to
give the scheduler a way to account for div and sqrt on targets that
don't have an itinerary. It is currently defaults to 10 (the actual
number doesn't matter much), but only takes effect on non-default
schedulers: list-hybrid and list-ilp.

Added several heuristics that can be individually disabled for the
non-default sched=list-ilp mode. This helps us determine how much
better we can do on a given benchmark than the default
scheduler. Certain compute intensive loops run much faster in this
mode with the right set of heuristics, and it doesn't seem to have
much negative impact elsewhere. Not all of the heuristics are needed,
but we still need to experiment to decide which should be disabled by
default for sched=list-ilp.

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

14 years agoremove jeff's name (by his request)
Chris Lattner [Sat, 5 Mar 2011 07:23:02 +0000 (07:23 +0000)]
remove jeff's name (by his request)

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

14 years agowhitespace
Andrew Trick [Sat, 5 Mar 2011 06:31:54 +0000 (06:31 +0000)]
whitespace

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

14 years agoThread comparisons over udiv/sdiv/ashr/lshr exact and lshr nuw/nsw whenever
Nick Lewycky [Sat, 5 Mar 2011 05:19:11 +0000 (05:19 +0000)]
Thread comparisons over udiv/sdiv/ashr/lshr exact and lshr nuw/nsw whenever
possible. This goes into instcombine and instsimplify because instsimplify
doesn't need to check hasOneUse since it returns (almost exclusively) constants.

This fixes PR9343 #4 #5 and #8!

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

14 years agoTry once again to optimize "icmp (srem X, Y), Y" by turning the comparison into
Nick Lewycky [Sat, 5 Mar 2011 04:28:48 +0000 (04:28 +0000)]
Try once again to optimize "icmp (srem X, Y), Y" by turning the comparison into
true/false or "icmp slt/sge Y, 0".

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

14 years agoRework the global split cost calculation.
Jakob Stoklund Olesen [Sat, 5 Mar 2011 03:28:51 +0000 (03:28 +0000)]
Rework the global split cost calculation.

The global cost is the sum of block frequencies for spill code that must be
inserted because preferences weren't met.

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

14 years agotest/CodeGen/X86/vec_cast.ll: [PR8311] Add explicit -mtriple=x86_64-linux and -mtripl...
NAKAMURA Takumi [Sat, 5 Mar 2011 02:38:02 +0000 (02:38 +0000)]
test/CodeGen/X86/vec_cast.ll: [PR8311] Add explicit -mtriple=x86_64-linux and -mtriple=x86_64-win32. Thanks to Nadav, it might be fixed in r126424.

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

14 years agotest commit
Jin-Gu Kang [Sat, 5 Mar 2011 02:36:09 +0000 (02:36 +0000)]
test commit

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

14 years agoCompute the constraints for global live range splitting from an interference pattern.
Jakob Stoklund Olesen [Sat, 5 Mar 2011 01:10:31 +0000 (01:10 +0000)]
Compute the constraints for global live range splitting from an interference pattern.

This simplifies the code and makes it faster too.

The interference patterns are saved for each candidate register. It will be
reused for actually executing the split. Work in progress.

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

14 years agoTeach the register scavenger to take subregs into account when finding a free register.
Jim Grosbach [Sat, 5 Mar 2011 00:20:19 +0000 (00:20 +0000)]
Teach the register scavenger to take subregs into account when finding a free register.

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

14 years agoSupport unregistering exception frames of functions when they are removed.
Eric Christopher [Fri, 4 Mar 2011 23:37:39 +0000 (23:37 +0000)]
Support unregistering exception frames of functions when they are removed.

Patch by Johannes Schaub!

Fixes PR8548

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

14 years agoFix the case where the number of jobs is less than the
David Greene [Fri, 4 Mar 2011 23:02:52 +0000 (23:02 +0000)]
Fix the case where the number of jobs is less than the
number of threads.  In that case make the number of threads
equal to the number of jobs and launch one jobs on each
thread.  This makes things work like make -j.

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