[llvm-commits] [llvm] r41189 - /llvm/trunk/lib/VMCore/Function.cpp

2007-08-20 Thread Dan Gohman
Author: djg Date: Mon Aug 20 14:23:34 2007 New Revision: 41189 URL: http://llvm.org/viewvc/llvm-project?rev=41189view=rev Log: When Intrinsic::getName is constructing names for overloaded intrinsics, use the ValueType name instead of the llvm type name, to match what the verifier expects. For

[llvm-commits] [llvm] r41191 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

2007-08-20 Thread Dan Gohman
Author: djg Date: Mon Aug 20 14:28:38 2007 New Revision: 41191 URL: http://llvm.org/viewvc/llvm-project?rev=41191view=rev Log: Minor cleanups to reduce some spurious differences between different scheduler implementations. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

[llvm-commits] [llvm] r41128 - in /llvm/trunk: include/llvm/CodeGen/ValueTypes.h include/llvm/CodeGen/ValueTypes.td include/llvm/Intrinsics.td lib/VMCore/Verifier.cpp utils/TableGen/CodeGenTarget.cpp

2007-08-16 Thread Dan Gohman
Author: djg Date: Thu Aug 16 16:57:19 2007 New Revision: 41128 URL: http://llvm.org/viewvc/llvm-project?rev=41128view=rev Log: Add MVT::fAny for overloading intrinsics on floating-point types. Modified: llvm/trunk/include/llvm/CodeGen/ValueTypes.h

[llvm-commits] [llvm] r41130 - /llvm/trunk/lib/VMCore/Verifier.cpp

2007-08-16 Thread Dan Gohman
Author: djg Date: Thu Aug 16 17:06:45 2007 New Revision: 41130 URL: http://llvm.org/viewvc/llvm-project?rev=41130view=rev Log: Fix the verification for overloaded intrinsic types. Check that they are what they're supposed to be before using them. Modified: llvm/trunk/lib/VMCore/Verifier.cpp

[llvm-commits] [llvm] r41098 - /llvm/trunk/test/CodeGen/X86/trunc-to-bool.ll

2007-08-15 Thread Dan Gohman
Author: djg Date: Wed Aug 15 08:42:36 2007 New Revision: 41098 URL: http://llvm.org/viewvc/llvm-project?rev=41098view=rev Log: Convert another test to use the count script. This one didn't fit the regex used to convert all the others because the first '|' was on a separate line. Modified:

[llvm-commits] [llvm] r41099 - in /llvm/trunk/test/CodeGen/X86: 2006-05-08-CoalesceSubRegClass.ll test-pic-1.ll

2007-08-15 Thread Dan Gohman
Author: djg Date: Wed Aug 15 08:45:35 2007 New Revision: 41099 URL: http://llvm.org/viewvc/llvm-project?rev=41099view=rev Log: Delete extraneous uses of wc -l. Modified: llvm/trunk/test/CodeGen/X86/2006-05-08-CoalesceSubRegClass.ll llvm/trunk/test/CodeGen/X86/test-pic-1.ll Modified:

[llvm-commits] [llvm] r41100 - in /llvm/trunk/test: CFrontend/2007-06-15-AnnotateAttribute.c CFrontend/2007-08-01-LoadStoreAlign.c CodeGen/ARM/aliases.ll CodeGen/ARM/unaligned_load_store.ll CodeGen/Ge

2007-08-15 Thread Dan Gohman
Author: djg Date: Wed Aug 15 08:49:33 2007 New Revision: 41100 URL: http://llvm.org/viewvc/llvm-project?rev=41100view=rev Log: Convert tests using grep -c ... | grep ... to use the count script. Modified: llvm/trunk/test/CFrontend/2007-06-15-AnnotateAttribute.c

[llvm-commits] [llvm] r41101 - /llvm/trunk/test/CodeGen/ARM/align.ll

2007-08-15 Thread Dan Gohman
Author: djg Date: Wed Aug 15 08:55:47 2007 New Revision: 41101 URL: http://llvm.org/viewvc/llvm-project?rev=41101view=rev Log: This test used wc | grep ...; convert it to use the count script. Modified: llvm/trunk/test/CodeGen/ARM/align.ll Modified: llvm/trunk/test/CodeGen/ARM/align.ll URL:

[llvm-commits] [llvm] r41102 - in /llvm/trunk/test: C++Frontend/ CFrontend/

2007-08-15 Thread Dan Gohman
Author: djg Date: Wed Aug 15 09:03:58 2007 New Revision: 41102 URL: http://llvm.org/viewvc/llvm-project?rev=41102view=rev Log: svn propdel the svn:mime-type property of application/x-troff. Modified: llvm/trunk/test/C++Frontend/2003-08-24-Cleanup.cpp.tr (props changed)

[llvm-commits] [llvm] r41049 - in /llvm/trunk: lib/Target/X86/X86ISelDAGToDAG.cpp test/CodeGen/X86/lea-recursion.ll

2007-08-13 Thread Dan Gohman
Author: djg Date: Mon Aug 13 15:03:06 2007 New Revision: 41049 URL: http://llvm.org/viewvc/llvm-project?rev=41049view=rev Log: When x86 addresses matching exceeds its recursion limit, check to see if the base register is already occupied before assuming it can be used. This fixes bogus code

Re: [llvm-commits] [llvm] r40988 - /llvm/trunk/test/Scripts/count

2007-08-13 Thread Dan Gohman
Why not make the script do the grep too? Something like: countgrep foo 2 *shrug*, that's more than I needed to solve a specific problem :-). And it's nice to be able to support grep options like -v, -F, -i, etc. in a simple way. Dan -- Dan Gohman, Cray Inc

[llvm-commits] [llvm] r40987 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/X86/insertelement-copytoregs.ll

2007-08-10 Thread Dan Gohman
Author: djg Date: Fri Aug 10 09:59:38 2007 New Revision: 40987 URL: http://llvm.org/viewvc/llvm-project?rev=40987view=rev Log: Fix EXTRACT_ELEMENT, EXTRACT_SUBVECTOR, and EXTRACT_VECTOR_ELT to use an intptr ValueType instead of i32 for the index operand in getCopyToParts. Added:

Re: [llvm-commits] [llvm] r40641 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

2007-08-10 Thread Dan Gohman
getelementptrs into integer operations, which I hear basicaa wouldn't immediately appreciate, though there are ways to fix that. Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm

[llvm-commits] [llvm] r40988 - /llvm/trunk/test/Scripts/count

2007-08-10 Thread Dan Gohman
Author: djg Date: Fri Aug 10 10:07:05 2007 New Revision: 40988 URL: http://llvm.org/viewvc/llvm-project?rev=40988view=rev Log: Add a test script for counting lines. This can be used instead of the | grep foo | wc -l | grep 2 idiom used by many tests, so that, for example, tests don't mistakenly

Re: [llvm-commits] [llvm] r40982 - in /llvm/trunk: include/llvm/IntrinsicsX86.td lib/Target/X86/X86InstrSSE.td

2007-08-10 Thread Dan Gohman
yet still require 128-bit memory operand alignment (on subtargets where alignment is required). Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Re: [llvm-commits] [llvm] r40792 - in /llvm/trunk/lib/Target: Alpha/AlphaTargetMachine.cpp IA64/IA64TargetMachine.cpp PowerPC/PPCSubtarget.h Sparc/SparcTargetMachine.cpp TargetData.cpp X86/X86TargetMa

2007-08-03 Thread Dan Gohman
this type and the regular FP128 type? The current fpext/fptrunc instructions don't seem to cover this case. Maybe fptrunc could be generalized to cover all floating-point conversions for which there are values for the operand type which cannot be exactly represented in the result type. Dan -- Dan

[llvm-commits] [llvm] r40736 - in /llvm/trunk: lib/Target/X86/X86InstrMMX.td lib/Target/X86/X86InstrSSE.td test/CodeGen/X86/constant-pool-remat-0.ll

2007-08-02 Thread Dan Gohman
Author: djg Date: Thu Aug 2 09:27:55 2007 New Revision: 40736 URL: http://llvm.org/viewvc/llvm-project?rev=40736view=rev Log: Mark the SSE and MMX load instructions that X86InstrInfo::isReallyTriviallyReMaterializable knows how to handle with the isReMaterializable flag so that it is given a

[llvm-commits] [llvm] r40754 - /llvm/trunk/lib/Target/X86/X86InstrSSE.td

2007-08-02 Thread Dan Gohman
Author: djg Date: Thu Aug 2 16:06:40 2007 New Revision: 40754 URL: http://llvm.org/viewvc/llvm-project?rev=40754view=rev Log: Fix pastos in vector arithmetic intrinsics. Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td URL:

[llvm-commits] [llvm] r40756 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp lib/Target/X86/X86InstrSSE.td test/CodeGen/X86/sse-align-12.ll

2007-08-02 Thread Dan Gohman
Author: djg Date: Thu Aug 2 16:17:01 2007 New Revision: 40756 URL: http://llvm.org/viewvc/llvm-project?rev=40756view=rev Log: Fix the alignment requirements of several unpck and shuf instructions. Generalize isPSHUFDMask and add a unary SHUFPD pattern so that SHUFPD's memory operand alignment

[llvm-commits] [llvm] r40757 - in /llvm/trunk/lib: CodeGen/BranchFolding.cpp CodeGen/VirtRegMap.h Target/ARM/ARMISelLowering.h Target/Alpha/AlphaISelLowering.h Target/IA64/IA64ISelLowering.h Target/Mi

2007-08-02 Thread Dan Gohman
Author: djg Date: Thu Aug 2 16:21:54 2007 New Revision: 40757 URL: http://llvm.org/viewvc/llvm-project?rev=40757view=rev Log: More explicit keywords. Modified: llvm/trunk/lib/CodeGen/BranchFolding.cpp llvm/trunk/lib/CodeGen/VirtRegMap.h llvm/trunk/lib/Target/ARM/ARMISelLowering.h

Re: [llvm-commits] [llvm] r40641 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

2007-08-02 Thread Dan Gohman
where I'm working on the attached patch, which moves the getelementptr logic out of LSR into SCEV, and generalizes it to handle more pointer expressions. Dan -- Dan Gohman, Cray Inc. Index: include/llvm/Analysis/ScalarEvolutionExpander.h

Re: [llvm-commits] [llvm] r40738 - in /llvm/trunk/lib/Transforms/Scalar: CodeGenPrepare.cpp InstructionCombining.cpp LoopStrengthReduce.cpp LoopUnroll.cpp LoopUnswitch.cpp RedundantLoadElimination.cpp

2007-08-02 Thread Dan Gohman
; } The original line there was within 80 cols ;-). Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

[llvm-commits] [llvm] r40672 - /llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp

2007-08-01 Thread Dan Gohman
Author: djg Date: Wed Aug 1 09:42:30 2007 New Revision: 40672 URL: http://llvm.org/viewvc/llvm-project?rev=40672view=rev Log: Change a .size directive to use a tab instead of a space, for consistency. Modified: llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp Modified:

[llvm-commits] [llvm] r40673 - in /llvm/trunk: include/llvm/Analysis/ include/llvm/CodeGen/ include/llvm/Target/ include/llvm/Transforms/IPO/ lib/Analysis/ lib/Analysis/IPA/ lib/Transforms/IPO/ lib/Tr

2007-08-01 Thread Dan Gohman
Author: djg Date: Wed Aug 1 10:32:29 2007 New Revision: 40673 URL: http://llvm.org/viewvc/llvm-project?rev=40673view=rev Log: More explicit keywords. Modified: llvm/trunk/include/llvm/Analysis/LoopPass.h llvm/trunk/include/llvm/CodeGen/MachineConstantPool.h

Re: [llvm-commits] [llvm] r40624 - in /llvm/trunk: lib/Analysis/BasicAliasAnalysis.cpp test/Analysis/BasicAA/2007-07-31-NoAliasTest.ll

2007-07-31 Thread Dan Gohman
!= E; ++I, ++Idx) { +if ((*I) == Arg + Attr-paramHasAttr(Idx, ParamAttr::NoAlias)) + return NoAlias; + } +} + } Same as above. Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing

[llvm-commits] [llvm] r40641 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

2007-07-31 Thread Dan Gohman
Author: djg Date: Tue Jul 31 12:22:27 2007 New Revision: 40641 URL: http://llvm.org/viewvc/llvm-project?rev=40641view=rev Log: Use SCEVExpander::InsertCastOfTo instead of calling new IntToPtrInst directly, because the insert point used by the SCEVExpander may vary from what LSR originally

[llvm-commits] [llvm] r40588 - in /llvm/trunk: include/llvm/PassManager.h include/llvm/PassManagers.h lib/VMCore/PassManager.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 09:51:13 2007 New Revision: 40588 URL: http://llvm.org/viewvc/llvm-project?rev=40588view=rev Log: Fix pastos in comments for doFinalization functions. Modified: llvm/trunk/include/llvm/PassManager.h llvm/trunk/include/llvm/PassManagers.h

[llvm-commits] [llvm] r40589 - in /llvm/trunk: include/llvm/Target/TargetData.h lib/ExecutionEngine/Interpreter/Interpreter.h lib/Target/ARM/ARMFrameInfo.h utils/TableGen/CallingConvEmitter.h

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 09:51:59 2007 New Revision: 40589 URL: http://llvm.org/viewvc/llvm-project?rev=40589view=rev Log: More explicit keywords. Modified: llvm/trunk/include/llvm/Target/TargetData.h llvm/trunk/lib/ExecutionEngine/Interpreter/Interpreter.h

[llvm-commits] [llvm] r40590 - in /llvm/trunk: include/llvm/Target/TargetMachineRegistry.h lib/Target/TargetMachineRegistry.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 09:58:59 2007 New Revision: 40590 URL: http://llvm.org/viewvc/llvm-project?rev=40590view=rev Log: Fix the comment for getClosestTargetForJIT to reflect the fact that it does not have a Module parameter. Modified:

[llvm-commits] [llvm] r40591 - /llvm/trunk/tools/opt/opt.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 10:01:09 2007 New Revision: 40591 URL: http://llvm.org/viewvc/llvm-project?rev=40591view=rev Log: Remove a FIXME comment that wasn't removed when the code it accompanied was removed. Modified: llvm/trunk/tools/opt/opt.cpp Modified: llvm/trunk/tools/opt/opt.cpp

[llvm-commits] [llvm] r40592 - /llvm/trunk/include/llvm/Target/TargetMachine.h

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 10:04:59 2007 New Revision: 40592 URL: http://llvm.org/viewvc/llvm-project?rev=40592view=rev Log: Fix the comments for the 'fast' parameter in addPassesToEmitFile. Modified: llvm/trunk/include/llvm/Target/TargetMachine.h Modified:

[llvm-commits] [llvm] r40593 - /llvm/trunk/lib/CodeGen/AsmPrinter.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 10:06:25 2007 New Revision: 40593 URL: http://llvm.org/viewvc/llvm-project?rev=40593view=rev Log: Print a space between the comment character and the basic block name, for prettiness. Modified: llvm/trunk/lib/CodeGen/AsmPrinter.cpp Modified:

[llvm-commits] [llvm] r40594 - in /llvm/trunk/lib/Target/X86: X86ATTAsmPrinter.cpp X86AsmPrinter.cpp

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 10:08:02 2007 New Revision: 40594 URL: http://llvm.org/viewvc/llvm-project?rev=40594view=rev Log: Use tabs more consistently in assembler pseudo-ops. Modified: llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp

[llvm-commits] [llvm] r40598 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/Alpha/illegal-element-type.ll test/CodeGen/PowerPC/illegal-element-type.ll

2007-07-30 Thread Dan Gohman
Author: djg Date: Mon Jul 30 14:09:17 2007 New Revision: 40598 URL: http://llvm.org/viewvc/llvm-project?rev=40598view=rev Log: Fix a bug in getCopyFromParts turned up in the testcase for PR1132. Added: llvm/trunk/test/CodeGen/Alpha/illegal-element-type.ll

[llvm-commits] [llvm] r40555 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp lib/Target/X86/X86ISelLowering.h lib/Target/X86/X86InstrSSE.td test/CodeGen/X86/fsxor-alignment.ll test/CodeGen/X86/ve

2007-07-27 Thread Dan Gohman
Author: djg Date: Fri Jul 27 12:16:43 2007 New Revision: 40555 URL: http://llvm.org/viewvc/llvm-project?rev=40555view=rev Log: Re-apply 40504, but with a fix for the segfault it caused in oggenc: Make the alignedload and alignedstore patterns always require 16-byte alignment. This way when they

[llvm-commits] [llvm] r40534 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2007-07-26 Thread Dan Gohman
Author: djg Date: Thu Jul 26 11:14:06 2007 New Revision: 40534 URL: http://llvm.org/viewvc/llvm-project?rev=40534view=rev Log: Fix the alias analysis query in DAGCombiner to not add in two offsets. The SrcValueOffset values are the real offsets from the SrcValue base pointers. Modified:

[llvm-commits] [llvm] r40533 - in /llvm/trunk/lib: Transforms/Utils/Local.cpp VMCore/Instruction.cpp

2007-07-26 Thread Dan Gohman
Author: djg Date: Thu Jul 26 11:06:08 2007 New Revision: 40533 URL: http://llvm.org/viewvc/llvm-project?rev=40533view=rev Log: Move the GET_SIDE_EFFECT_INFO logic from isInstructionTriviallyDead to Instruction::mayWriteToMemory, fixing a FIXME, and helping various places that call

[llvm-commits] [llvm] r40529 - /llvm/trunk/lib/Target/X86/X86InstrInfo.td

2007-07-26 Thread Dan Gohman
Author: djg Date: Thu Jul 26 10:24:15 2007 New Revision: 40529 URL: http://llvm.org/viewvc/llvm-project?rev=40529view=rev Log: In the .loc directive, print the fields as debug fields, so they don't get decorated as if for immediate fields for instructions. Modified:

[llvm-commits] [llvm] r40528 - /llvm/trunk/lib/Target/X86/X86InstrSSE.td

2007-07-26 Thread Dan Gohman
Author: djg Date: Thu Jul 26 10:11:50 2007 New Revision: 40528 URL: http://llvm.org/viewvc/llvm-project?rev=40528view=rev Log: Fix a whitespace difference between CMPSSrr and CMPSDrr. Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td URL:

[llvm-commits] [llvm] r40527 - /llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp

2007-07-26 Thread Dan Gohman
Author: djg Date: Thu Jul 26 10:11:00 2007 New Revision: 40527 URL: http://llvm.org/viewvc/llvm-project?rev=40527view=rev Log: Fix a pasto in a comment. Modified: llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp Modified: llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp URL:

[llvm-commits] [llvm] r40531 - /llvm/trunk/lib/Transforms/Scalar/CorrelatedExprs.cpp

2007-07-26 Thread Dan Gohman
Author: djg Date: Thu Jul 26 10:29:35 2007 New Revision: 40531 URL: http://llvm.org/viewvc/llvm-project?rev=40531view=rev Log: Remove a bogus return statement, what appears to have been a pasto from Relation::contradicts in Relation::incorporate. Modified:

[llvm-commits] [llvm] r40530 - /llvm/trunk/lib/VMCore/BasicBlock.cpp

2007-07-26 Thread Dan Gohman
Author: djg Date: Thu Jul 26 10:25:08 2007 New Revision: 40530 URL: http://llvm.org/viewvc/llvm-project?rev=40530view=rev Log: DummyInst's member functions don't need to be virtual. Modified: llvm/trunk/lib/VMCore/BasicBlock.cpp Modified: llvm/trunk/lib/VMCore/BasicBlock.cpp URL:

Re: [llvm-commits] ScalarEvolution fix for treeadd

2007-07-25 Thread Dan Gohman
may not be executed the same number of times as the loop header. Can you identify a testcase that doesn't involve an infinite loop where the PDF test rejects a loop that the one of the other tests accepts? Dan -- Dan Gohman [EMAIL PROTECTED] ___ llvm

[llvm-commits] [llvm] r40504 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp lib/Target/X86/X86ISelLowering.h lib/Target/X86/X86InstrSSE.td test/CodeGen/X86/vec_shuffle.ll

2007-07-25 Thread Dan Gohman
Author: djg Date: Wed Jul 25 19:31:09 2007 New Revision: 40504 URL: http://llvm.org/viewvc/llvm-project?rev=40504view=rev Log: Remove X86ISD::LOAD_PACK and X86ISD::LOAD_UA and associated code from the x86 target, replacing them with the new alignment attributes on memory references. Modified:

[llvm-commits] [llvm] r40487 - in /llvm/trunk/lib/Target: ARM/ARMAsmPrinter.cpp Alpha/AlphaAsmPrinter.cpp IA64/IA64AsmPrinter.cpp Mips/MipsAsmPrinter.cpp PowerPC/PPCAsmPrinter.cpp Sparc/SparcAsmPrinte

2007-07-25 Thread Dan Gohman
Author: djg Date: Wed Jul 25 14:33:14 2007 New Revision: 40487 URL: http://llvm.org/viewvc/llvm-project?rev=40487view=rev Log: Don't ignore the return value of AsmPrinter::doInitialization and AsmPrinter::doFinalization. Modified: llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp

[llvm-commits] [llvm] r40480 - in /llvm/trunk: include/llvm/CodeGen/SelectionDAGISel.h lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp lib/Target/X86/X86ISelDAGToDAG.cpp

2007-07-24 Thread Dan Gohman
Author: djg Date: Tue Jul 24 18:00:27 2007 New Revision: 40480 URL: http://llvm.org/viewvc/llvm-project?rev=40480view=rev Log: Add const to CanBeFoldedBy, CheckAndMask, and CheckOrMask. Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGISel.h

Re: [llvm-commits] ScalarEvolution fix for treeadd

2007-07-23 Thread Dan Gohman
+// If we can show that there is no inner cycle in the loop then we know +// that the execution count must equal the branch count. Would it be too intrusive to ask ScalarEvolution to use a PostDominanceFrontier for this? Dan -- Dan Gohman, Cray Inc

Re: [llvm-commits] ScalarEvolution fix for treeadd

2007-07-23 Thread Dan Gohman
like %bb2 is the loop header, and %cond_next is the block that contains the exit branch. The frontier sets for these two blocks are different, so they're not control-equivalent, and that disqualifies the loop for what ScalarEvolution is doing here. Dan -- Dan Gohman, Cray Inc

[llvm-commits] [llvm] r40441 - in /llvm/trunk: lib/Target/X86/X86ATTAsmPrinter.cpp lib/Target/X86/X86ATTAsmPrinter.h lib/Target/X86/X86AsmPrinter.h lib/Target/X86/X86IntelAsmPrinter.cpp lib/Target/X86

2007-07-23 Thread Dan Gohman
Author: djg Date: Mon Jul 23 14:26:08 2007 New Revision: 40441 URL: http://llvm.org/viewvc/llvm-project?rev=40441view=rev Log: Delete the svn:executable property on these files, which aren't executable. Modified: llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp (props changed)

[llvm-commits] [llvm] r40443 - in /llvm/trunk/lib: CodeGen/DwarfWriter.cpp CodeGen/SelectionDAG/SelectionDAG.cpp Target/X86/X86ISelLowering.cpp

2007-07-23 Thread Dan Gohman
Author: djg Date: Mon Jul 23 15:24:29 2007 New Revision: 40443 URL: http://llvm.org/viewvc/llvm-project?rev=40443view=rev Log: Fix some uses of dyn_cast to be uses of cast. Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Re: [llvm-commits] Patch for LangRef.html as part of Atomic Operations

2007-07-20 Thread Dan Gohman
memory operations, not just the atomic ones. How about llvm.membarrier, or llvm.memory.barrier if you like Reid's proposed convention? Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman

[llvm-commits] [llvm] r40101 - in /llvm/trunk/test/CodeGen/X86: sse-align-10.ll sse-align-5.ll sse-align-6.ll sse-align-7.ll sse-align-8.ll vec_call.ll

2007-07-20 Thread Dan Gohman
Author: djg Date: Fri Jul 20 11:31:26 2007 New Revision: 40101 URL: http://llvm.org/viewvc/llvm-project?rev=40101view=rev Log: Update these regression tests to accomodate X86InstrSSE.td now using movups/movaps for everything. Modified: llvm/trunk/test/CodeGen/X86/sse-align-10.ll

[llvm-commits] [llvm] r40102 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/loadstore-alignment.ll

2007-07-20 Thread Dan Gohman
Author: djg Date: Fri Jul 20 11:34:21 2007 New Revision: 40102 URL: http://llvm.org/viewvc/llvm-project?rev=40102view=rev Log: Optimize alignment of loads and stores. Added: llvm/trunk/test/Transforms/InstCombine/loadstore-alignment.ll Modified:

[llvm-commits] [llvm] r40130 - /llvm/trunk/include/llvm/Instructions.h

2007-07-20 Thread Dan Gohman
Author: djg Date: Fri Jul 20 18:14:50 2007 New Revision: 40130 URL: http://llvm.org/viewvc/llvm-project?rev=40130view=rev Log: Simplify the logic for setVolatile. Modified: llvm/trunk/include/llvm/Instructions.h Modified: llvm/trunk/include/llvm/Instructions.h URL:

[llvm-commits] [llvm] r40131 - in /llvm/trunk: include/llvm/CodeGen/LiveVariables.h lib/CodeGen/LiveVariables.cpp lib/CodeGen/SimpleRegisterCoalescing.cpp

2007-07-20 Thread Dan Gohman
Author: djg Date: Fri Jul 20 18:17:34 2007 New Revision: 40131 URL: http://llvm.org/viewvc/llvm-project?rev=40131view=rev Log: Don't assume that only Uses can be kills. Defs are marked as kills initially when there are no uses. This fixes a dangling-pointer bug, where pointers to deleted

Re: [llvm-commits] [llvm] r39967 - in /llvm/trunk: lib/Target/X86/X86MachineFunctionInfo.h lib/Target/X86/X86RegisterInfo.cpp lib/Target/X86/X86RegisterInfo.h test/CodeGen/X86/2006-05-02-InstrSched2.l

2007-07-18 Thread Dan Gohman
instruction :). Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

[llvm-commits] [llvm] r40004 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/X86/alloca-align-rounding.ll

2007-07-18 Thread Dan Gohman
Author: djg Date: Wed Jul 18 11:29:46 2007 New Revision: 40004 URL: http://llvm.org/viewvc/llvm-project?rev=40004view=rev Log: It's not necessary to do rounding for alloca operations when the requested alignment is equal to the stack alignment. Added:

[llvm-commits] [llvm] r40015 - in /llvm/trunk: lib/Target/X86/X86InstrSSE.td test/CodeGen/X86/sse-align-0.ll test/CodeGen/X86/sse-align-1.ll test/CodeGen/X86/sse-align-10.ll test/CodeGen/X86/sse-align

2007-07-18 Thread Dan Gohman
Author: djg Date: Wed Jul 18 15:23:34 2007 New Revision: 40015 URL: http://llvm.org/viewvc/llvm-project?rev=40015view=rev Log: Implement initial memory alignment awareness for SSE instructions. Vector loads and stores that have a specified alignment of less than 16 bytes now use instructions that

[llvm-commits] [llvm] r40016 - in /llvm/trunk: include/llvm/Instructions.h lib/VMCore/Instructions.cpp

2007-07-18 Thread Dan Gohman
Author: djg Date: Wed Jul 18 15:51:11 2007 New Revision: 40016 URL: http://llvm.org/viewvc/llvm-project?rev=40016view=rev Log: Add constructor overloads for LoadInst and StoreInst that insert at the end of a BasicBlock and have an alignment parameter. Modified:

[llvm-commits] [llvm] r39920 - in /llvm/trunk/test/CodeGen: Generic/badCallArgLRLLVM.ll PowerPC/big-endian-call-result.ll

2007-07-16 Thread Dan Gohman
Author: djg Date: Mon Jul 16 08:37:30 2007 New Revision: 39920 URL: http://llvm.org/viewvc/llvm-project?rev=39920view=rev Log: Remove the trailing semicolon from function declarations in LLVM, where it's interpreted as a comment, not part of the syntax. Modified:

[llvm-commits] [llvm] r39921 - in /llvm/trunk: include/llvm/Constants.h include/llvm/DerivedTypes.h include/llvm/InstrTypes.h include/llvm/Target/TargetData.h lib/Analysis/BasicAliasAnalysis.cpp lib/C

2007-07-16 Thread Dan Gohman
Author: djg Date: Mon Jul 16 09:29:03 2007 New Revision: 39921 URL: http://llvm.org/viewvc/llvm-project?rev=39921view=rev Log: Fix comments about vectors to use the current wording. Modified: llvm/trunk/include/llvm/Constants.h llvm/trunk/include/llvm/DerivedTypes.h

[llvm-commits] [llvm] r39922 - /llvm/trunk/docs/LangRef.html

2007-07-16 Thread Dan Gohman
Author: djg Date: Mon Jul 16 09:37:41 2007 New Revision: 39922 URL: http://llvm.org/viewvc/llvm-project?rev=39922view=rev Log: Fix the documentation for llvm.sqrt so that sqrt(0) has defined behavior, which appears to be the intent. Modified: llvm/trunk/docs/LangRef.html Modified:

[llvm-commits] [llvm] r39923 - /llvm/trunk/lib/Analysis/ConstantFolding.cpp

2007-07-16 Thread Dan Gohman
Author: djg Date: Mon Jul 16 10:26:22 2007 New Revision: 39923 URL: http://llvm.org/viewvc/llvm-project?rev=39923view=rev Log: Use ConstantFoldFP for folding all unary floating-point operations which may have an error, and refector out the code for binary operators into ConstantFoldBinaryFP and

Re: [llvm-commits] working on generalized vector intrinsics

2007-07-16 Thread Dan Gohman
proceed. Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

[llvm-commits] [llvm] r39823 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2007-07-13 Thread Dan Gohman
Author: djg Date: Fri Jul 13 15:03:40 2007 New Revision: 39823 URL: http://llvm.org/viewvc/llvm-project?rev=39823view=rev Log: Don't call SimplifyVBinOp for non-vector operations, following earlier review feedback. This theoretically makes the common (scalar) case more efficient. Modified:

[llvm-commits] [llvm] r39827 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

2007-07-13 Thread Dan Gohman
Author: djg Date: Fri Jul 13 15:14:11 2007 New Revision: 39827 URL: http://llvm.org/viewvc/llvm-project?rev=39827view=rev Log: Fix the comment for LegalizeOp to more accurately reflect what it does. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Modified:

[llvm-commits] [llvm] r39828 - in /llvm/trunk/utils/TableGen: CodeGenTarget.cpp CodeGenTarget.h

2007-07-13 Thread Dan Gohman
Author: djg Date: Fri Jul 13 15:16:50 2007 New Revision: 39828 URL: http://llvm.org/viewvc/llvm-project?rev=39828view=rev Log: Eliminate an unused parameter. Modified: llvm/trunk/utils/TableGen/CodeGenTarget.cpp llvm/trunk/utils/TableGen/CodeGenTarget.h Modified:

[llvm-commits] [llvm] r38491 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2007-07-10 Thread Dan Gohman
Author: djg Date: Tue Jul 10 10:19:29 2007 New Revision: 38491 URL: http://llvm.org/viewvc/llvm-project?rev=38491view=rev Log: Fix a bug in the folding of binary operators to undef. Thanks to Lauro for spotting this! Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Modified:

[llvm-commits] [llvm] r38492 - /llvm/trunk/test/CodeGen/X86/scalar-min-max-fill-operand.ll

2007-07-10 Thread Dan Gohman
Author: djg Date: Tue Jul 10 10:34:29 2007 New Revision: 38492 URL: http://llvm.org/viewvc/llvm-project?rev=38492view=rev Log: Add a regression test for folding spill code into scalar min and max. Added: llvm/trunk/test/CodeGen/X86/scalar-min-max-fill-operand.ll Added:

Re: [llvm-commits] [llvm] r38478 - in /llvm/trunk/lib/Target/X86: X86ISelLowering.cpp X86ISelLowering.h X86InstrSSE.td X86RegisterInfo.cpp

2007-07-10 Thread Dan Gohman
working on a patch to add support for intrinsic functions with vector argument and result types that can be overloaded on vector length. Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman

[llvm-commits] [llvm] r38489 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2007-07-10 Thread Dan Gohman
Author: djg Date: Tue Jul 10 09:20:37 2007 New Revision: 38489 URL: http://llvm.org/viewvc/llvm-project?rev=38489view=rev Log: Fix the folding of undef in several binary operators to recognize undef in either the left or right operand. Modified:

[llvm-commits] [llvm] r38503 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAG.cpp test/CodeGen/X86/peep-vector-extract-concat.ll test/CodeGen/X86/peep-vector-extract-insert.ll

2007-07-10 Thread Dan Gohman
Author: djg Date: Tue Jul 10 13:20:44 2007 New Revision: 38503 URL: http://llvm.org/viewvc/llvm-project?rev=38503view=rev Log: Change the peep for EXTRACT_VECTOR_ELT of BUILD_PAIR to look for the new CONCAT_VECTORS node type instead, as that's what legalize uses now. And add a peep for

[llvm-commits] [llvm] r38457 - in /llvm/trunk: include/llvm/Analysis/ScalarEvolutionExpressions.h lib/Analysis/ScalarEvolution.cpp

2007-07-09 Thread Dan Gohman
Author: djg Date: Mon Jul 9 10:25:17 2007 New Revision: 38457 URL: http://llvm.org/viewvc/llvm-project?rev=38457view=rev Log: Move the APInt form of SCEVUnknown::getIntegerSCEV to SCEVConstant::get, and use SCEVConstant::get instead of SCEVUnknown::get when constructing a SCEV for a ConstantInt.

Re: [llvm-commits] [llvm] r37843 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

2007-07-09 Thread Dan Gohman
and passes with the new one. Thanks for your help, Dan On Fri, Jul 06, 2007 at 01:40:33PM -0700, Evan Cheng wrote: This seems to have fixed llvm-test failures, but Mac OS X PPC bootstrapping is still unhappy. :-( Evan -- Dan Gohman, Cray Inc. Index: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

[llvm-commits] [llvm] r38468 - /llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp

2007-07-09 Thread Dan Gohman
Author: djg Date: Mon Jul 9 15:49:44 2007 New Revision: 38468 URL: http://llvm.org/viewvc/llvm-project?rev=38468view=rev Log: Initialize the IndexedModeActions array with memset before updating it with calls to setIndexedLoadAction/setIndexedStoreAction, which only update a few bits at a time.

[llvm-commits] [llvm] r38471 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp lib/Target/PowerPC/PPCISelLowering.cpp test/CodeGen/PowerPC/big-endian-call-result.ll

2007-07-09 Thread Dan Gohman
Author: djg Date: Mon Jul 9 15:59:04 2007 New Revision: 38471 URL: http://llvm.org/viewvc/llvm-project?rev=38471view=rev Log: Change getCopyToParts and getCopyFromParts to always use target-endian register ordering, for both physical and virtual registers. Update the PPC target lowering for

[llvm-commits] [llvm] r38473 - in /llvm/trunk/lib/CodeGen/SelectionDAG: DAGCombiner.cpp LegalizeDAG.cpp

2007-07-09 Thread Dan Gohman
Author: djg Date: Mon Jul 9 17:18:38 2007 New Revision: 38473 URL: http://llvm.org/viewvc/llvm-project?rev=38473view=rev Log: Preserve volatililty and alignment information when lowering or simplifying loads and stores. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

[llvm-commits] [llvm] r38478 - in /llvm/trunk/lib/Target/X86: X86ISelLowering.cpp X86ISelLowering.h X86InstrSSE.td X86RegisterInfo.cpp

2007-07-09 Thread Dan Gohman
Author: djg Date: Mon Jul 9 19:05:58 2007 New Revision: 38478 URL: http://llvm.org/viewvc/llvm-project?rev=38478view=rev Log: Define non-intrinsic instructions for vector min, max, sqrt, rsqrt, and rcp, in addition to the intrinsic forms. Add spill-folding entries for these new instructions, and

Re: [llvm-commits] [llvm] r37843 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

2007-07-06 Thread Dan Gohman
-Int64ToFP.c Dan On Thu, Jul 05, 2007 at 06:48:31PM -0700, Evan Cheng wrote: Hi Dan, I've committed this: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of- Mon-20070702/051079.html as a workaround. Please figure out a proper fix. Thanks! Evan -- Dan Gohman, Cray Inc. Index

[llvm-commits] [llvm] r37943 - in /llvm/trunk/test/CodeGen/PowerPC: big-endian-actual-args.ll big-endian-formal-args.ll

2007-07-06 Thread Dan Gohman
Author: djg Date: Fri Jul 6 08:15:51 2007 New Revision: 37943 URL: http://llvm.org/viewvc/llvm-project?rev=37943view=rev Log: Add an explicit triple to the big-endian tests so that the assembly output format is always consistent with what the greps are looking for. Modified:

Re: [llvm-commits] [llvm] r37921 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/PowerPC/big-endian-actual-args.ll test/CodeGen/PowerPC/big-endian-formal-args.ll

2007-07-06 Thread Dan Gohman
. On different hosts, we're getting different defaults. I added explicit target triples to the test cases, which should fix this. Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman

[llvm-commits] [llvm] r37944 - /llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

2007-07-06 Thread Dan Gohman
Author: djg Date: Fri Jul 6 08:27:33 2007 New Revision: 37944 URL: http://llvm.org/viewvc/llvm-project?rev=37944view=rev Log: Fix a comment so that the element numbering match the actual element operand numbering. Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Modified:

[llvm-commits] [llvm] r37946 - /llvm/trunk/include/llvm/Target/TargetOptions.h

2007-07-06 Thread Dan Gohman
Author: djg Date: Fri Jul 6 08:59:28 2007 New Revision: 37946 URL: http://llvm.org/viewvc/llvm-project?rev=37946view=rev Log: Remove redundant declarations. Modified: llvm/trunk/include/llvm/Target/TargetOptions.h Modified: llvm/trunk/include/llvm/Target/TargetOptions.h URL:

Re: [llvm-commits] [llvm] r37843 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

2007-07-05 Thread Dan Gohman
are taking endianness into consideration? Thanks, Evan On Jul 2, 2007, at 9:18 AM, Dan Gohman wrote: Author: djg Date: Mon Jul 2 11:18:06 2007 New Revision: 37843 URL: http://llvm.org/viewvc/llvm-project?rev=37843view=rev Log: Replace ExpandScalarFormalArgs and ExpandScalarCallArgs

[llvm-commits] [llvm] r37921 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/PowerPC/big-endian-actual-args.ll test/CodeGen/PowerPC/big-endian-formal-args.ll

2007-07-05 Thread Dan Gohman
Author: djg Date: Thu Jul 5 15:12:34 2007 New Revision: 37921 URL: http://llvm.org/viewvc/llvm-project?rev=37921view=rev Log: Add a parameter to getCopyToParts and getCopyFromParts to specify whether endian swapping should be done, and update the code to use it. This fixes some register ordering

[llvm-commits] [llvm] r37922 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

2007-07-05 Thread Dan Gohman
Author: djg Date: Thu Jul 5 15:15:43 2007 New Revision: 37922 URL: http://llvm.org/viewvc/llvm-project?rev=37922view=rev Log: Make the debug string for ISD::MERGE_VALUES consistent with the others. Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Modified:

[llvm-commits] [llvm] r37924 - /llvm/trunk/include/llvm/CodeGen/MachineFunctionPass.h

2007-07-05 Thread Dan Gohman
Author: djg Date: Thu Jul 5 15:39:35 2007 New Revision: 37924 URL: http://llvm.org/viewvc/llvm-project?rev=37924view=rev Log: Make MachineFunctionPass::runOnFunction non-virtual. Subclasses override the virtual function runOnMachineFunction instead. And add access specifiers. Modified:

[llvm-commits] [llvm] r37925 - in /llvm/trunk/include/llvm: CodeGen/IntrinsicLowering.h CodeGen/MachineModuleInfo.h CodeGen/RegisterScavenging.h Support/CommandLine.h

2007-07-05 Thread Dan Gohman
Author: djg Date: Thu Jul 5 15:40:15 2007 New Revision: 37925 URL: http://llvm.org/viewvc/llvm-project?rev=37925view=rev Log: Add explicit keywords. Modified: llvm/trunk/include/llvm/CodeGen/IntrinsicLowering.h llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h

[llvm-commits] [llvm] r37851 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2007-07-03 Thread Dan Gohman
Author: djg Date: Tue Jul 3 09:03:57 2007 New Revision: 37851 URL: http://llvm.org/viewvc/llvm-project?rev=37851view=rev Log: Fix several over-aggressive folds for undef nodes in dagcombine, to follow the rules for undef used in instcombine. Modified:

Re: [llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp LegalizeDAG.cpp SelectionDAG.cpp SelectionDAGISel.cpp TargetLowering.cpp

2007-07-03 Thread Dan Gohman
, but it is a pessimization in some obscure cases. Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Re: [llvm-commits] [llvm] r37851 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2007-07-03 Thread Dan Gohman
isn't very valuable to me, and the easiest way to fix the code was to revert the change. Looking at it a little more, I think the instcombine folds are actually wrong here. For example, it does X + undef - undef, but that's wrong if X is a NaN. Dan -- Dan Gohman, Cray Inc

[llvm-commits] [llvm] r37839 - in /llvm/trunk: include/llvm/Analysis/LoopPass.h include/llvm/CallGraphSCCPass.h include/llvm/CodeGen/MachineFunctionPass.h lib/Analysis/BasicAliasAnalysis.cpp lib/Analy

2007-07-02 Thread Dan Gohman
Author: djg Date: Mon Jul 2 09:53:37 2007 New Revision: 37839 URL: http://llvm.org/viewvc/llvm-project?rev=37839view=rev Log: Add explicit keywords. Modified: llvm/trunk/include/llvm/Analysis/LoopPass.h llvm/trunk/include/llvm/CallGraphSCCPass.h

[llvm-commits] [llvm] r37840 - in /llvm/trunk/include/llvm/CodeGen: InstrScheduling.h Passes.h

2007-07-02 Thread Dan Gohman
Author: djg Date: Mon Jul 2 10:06:26 2007 New Revision: 37840 URL: http://llvm.org/viewvc/llvm-project?rev=37840view=rev Log: Remove declarations for code no longer in the tree, to avoid confusion. Removed: llvm/trunk/include/llvm/CodeGen/InstrScheduling.h Modified:

[llvm-commits] [llvm] r37841 - /llvm/trunk/test/CodeGen/X86/negative-sin.ll

2007-07-02 Thread Dan Gohman
Author: djg Date: Mon Jul 2 10:43:20 2007 New Revision: 37841 URL: http://llvm.org/viewvc/llvm-project?rev=37841view=rev Log: New test case. DAGCombiner should be able to fold -sin(-x) in -enable-unsafe-fp-math mode. Added: llvm/trunk/test/CodeGen/X86/negative-sin.ll Added:

[llvm-commits] [llvm] r37843 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

2007-07-02 Thread Dan Gohman
Author: djg Date: Mon Jul 2 11:18:06 2007 New Revision: 37843 URL: http://llvm.org/viewvc/llvm-project?rev=37843view=rev Log: Replace ExpandScalarFormalArgs and ExpandScalarCallArgs with the newly refactored getCopyFromParts and getCopyToParts, which are more general. This effectively adds

[llvm-commits] [llvm] r37844 - /llvm/trunk/lib/Target/X86/X86CallingConv.td

2007-07-02 Thread Dan Gohman
Author: djg Date: Mon Jul 2 11:21:53 2007 New Revision: 37844 URL: http://llvm.org/viewvc/llvm-project?rev=37844view=rev Log: Vector results may be returned in XMM0 and XMM1, not just XMM0. With the recent lowering changes, this allows types like 4 x double to be returned, using two vector

[llvm-commits] [llvm] r37845 - /llvm/trunk/test/CodeGen/X86/illegal-vector-args-return.ll

2007-07-02 Thread Dan Gohman
Author: djg Date: Mon Jul 2 11:23:47 2007 New Revision: 37845 URL: http://llvm.org/viewvc/llvm-project?rev=37845view=rev Log: Add a basic test-case for passing and returning 4 x double and 8 x float values on X86. Added: llvm/trunk/test/CodeGen/X86/illegal-vector-args-return.ll Added:

[llvm-commits] [llvm] r37842 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2007-07-02 Thread Dan Gohman
Author: djg Date: Mon Jul 2 10:48:56 2007 New Revision: 37842 URL: http://llvm.org/viewvc/llvm-project?rev=37842view=rev Log: Teach GetNegatedExpression to negate 0-B to B in UnsafeFPMath mode, and visitFSUB to fold 0-B to -B in UnsafeFPMath mode. Also change visitFNEG to use

Re: [llvm-commits] CVS: llvm/include/llvm/CodeGen/CallingConvLower.h SelectionDAG.h SelectionDAGNodes.h ValueTypes.h

2007-06-29 Thread Dan Gohman
different names to do essentially the same thing. Dan -- Dan Gohman, Cray Inc. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Re: [llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2007-06-29 Thread Dan Gohman
Duncan pointed out that I confused myself. If something is undef, we can choose to pick any specific value for the undef to pick the cancellation. Thanks Chris and Duncan for explaining this. I'll submit a fix for the DAGCombiner changes accordingly. Dan -- Dan Gohman, Cray Inc

<    1   2   3   4   5   >