summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* MC: Route access to SectionData offset and file size through MCAsmLayout.Daniel Dunbar2010-03-254-42/+86
| | | | llvm-svn: 99474
* MC: Route access to Fragment offset and effective size through MCAsmLayout.Daniel Dunbar2010-03-254-56/+69
| | | | llvm-svn: 99473
* Make sure this runs in 64-bit only, 32-bit won't produce the correct stores.Eric Christopher2010-03-251-1/+1
| | | | | | Fariborz please review and make sure this is what you meant. llvm-svn: 99472
* Change how dbg_value sdnodes are converted into machine instructions. Their ↵Evan Cheng2010-03-258-145/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | placement should be determined by the relative order of incoming llvm instructions. The scheduler will now use the SDNode ordering information to determine where to insert them. A dbg_value instruction is inserted after the instruction with the last highest source order and before the instruction with the next highest source order. It will optimize the placement by inserting right after the instruction that produces the value if they have consecutive order numbers. Here is a theoretical example that illustrates why the placement is important. tmp1 = store tmp1 -> x ... tmp2 = add ... ... call ... store tmp2 -> x Now mem2reg comes along: tmp1 = dbg_value (tmp1 -> x) ... tmp2 = add ... ... call ... dbg_value (tmp2 -> x) When the debugger examine the value of x after the add instruction but before the call, it should have the value of tmp1. Furthermore, for dbg_value's that reference constants, they should not be emitted at the beginning of the block (since they do not have "producers"). This patch also cleans up how SDISel manages DbgValue nodes. It allow a SDNode to be referenced by multiple SDDbgValue nodes. When a SDNode is deleted, it uses the information to find the SDDbgValues and invalidate them. They are not deleted until the corresponding SelectionDAG is destroyed. llvm-svn: 99469
* MC: Eliminate MC{Fragment,{Section,Symbol}Data}::getAddress.Daniel Dunbar2010-03-252-22/+11
| | | | llvm-svn: 99467
* MC: Fix refacto in MCExpr evaluation, I mistakenly replaced a fragment ↵Daniel Dunbar2010-03-252-26/+168
| | | | | | | | address with a symbol address. - This fixes the integrated-as nightly test regressions. llvm-svn: 99466
* Avoid being influenced by dbg_value instructions.Evan Cheng2010-03-252-2/+2
| | | | llvm-svn: 99465
* Fix unused parameter warning.Eric Christopher2010-03-251-3/+3
| | | | llvm-svn: 99463
* Disable folding loads into tail call in 32-bit PIC mode. It can introduce ↵Evan Cheng2010-03-251-1/+5
| | | | | | | | | | | | | | | | | illegal code like this: addl $12, %esp popl %esi popl %edi popl %ebx popl %ebp jmpl *__Block_deallocator-L1$pb(%esi) # TAILCALL The problem is the global base register is assigned GR32 register class. TCRETURNmi needs the registers making up the address mode to have the GR32_TC register class. The *proper* fix is for X86DAGToDAGISel::getGlobalBaseReg() to return a copy from the global base register of the machine function rather than returning the register itself. But that has the potential of causing it to be coalesced to a more restrictive register class: GR32_TC. It can introduce additional copies and spills. For something as important the PIC base, it's not worth it especially since this is not an issue on 64-bit. llvm-svn: 99455
* Docuemntation corrections from John Myers.Dan Gohman2010-03-253-7/+7
| | | | llvm-svn: 99454
* revert 99444/99445. This doesn't cause the failure of Chris Lattner2010-03-242-95/+78
| | | | | | | | 2006-07-19-stwbrx-crash.ll for me, but it's the only likely patch in the blame list of several bots. Lets see if this fixes it. llvm-svn: 99453
* Temporarily revert this, it's causing an issue with an internal project.Eric Christopher2010-03-245-52/+3
| | | | llvm-svn: 99451
* Speculatively revert this to see if it fixes buildbot failures.Bob Wilson2010-03-246-152/+1
| | | | | | | | | | | | --- Reverse-merging r99440 into '.': U test/MC/AsmParser/X86/x86_32-bit_cat.s U test/MC/AsmParser/X86/x86_32-encoding.s U include/llvm/IntrinsicsX86.td U include/llvm/CodeGen/SelectionDAGNodes.h U lib/Target/X86/X86InstrSSE.td U lib/Target/X86/X86ISelLowering.h llvm-svn: 99450
* add a convenient TargetInstrDesc::getNumImplicitUses/Defs method.Chris Lattner2010-03-241-0/+19
| | | | llvm-svn: 99446
* remove dead argument.Chris Lattner2010-03-242-5/+3
| | | | llvm-svn: 99445
* split EmitNode in half to reduce indentation.Chris Lattner2010-03-242-78/+97
| | | | llvm-svn: 99444
* Added the Advanced Encryption Standard (AES) Instructions.Kevin Enderby2010-03-246-1/+152
| | | | llvm-svn: 99440
* Make the use of the vmla and vmls VFP instructions controllable via cmd line.Jim Grosbach2010-03-245-4/+30
| | | | | | | Preliminary testing shows significant performance wins by not using these instructions. llvm-svn: 99436
* Fixed the SS42AI template for the SSE 4.2 instructions with TA prefix so it doesKevin Enderby2010-03-242-1/+9
| | | | | | | | not get an "Unknown immediate size" assert failure when used. All instructions of this form have an 8-bit immediate. Also added a test case of an example instruction that is of this form. llvm-svn: 99435
* Per chris's request, add some comments.Nate Begeman2010-03-241-2/+17
| | | | llvm-svn: 99434
* Use SP filename directly instead of SP's context's filename.Devang Patel2010-03-241-2/+2
| | | | llvm-svn: 99429
* Trivial formating change.Johnny Chen2010-03-241-2/+2
| | | | llvm-svn: 99428
* BUILD_VECTOR was missing out on some prime opportunities to use SSE 4.1 inserts.Nate Begeman2010-03-245-77/+80
| | | | llvm-svn: 99423
* Revert Edwin's change that is breaking MultiSource/Applications/ClamAV/clamscan.Bob Wilson2010-03-242-117/+1
| | | | | | | | --- Reverse-merging r99400 into '.': D test/CodeGen/Generic/2010-03-24-liveintervalleak.ll U lib/CodeGen/LiveIntervalAnalysis.cpp llvm-svn: 99419
* Move OptChkCall off LibCallOptimization into StrCpyOpt.Evan Cheng2010-03-241-7/+6
| | | | llvm-svn: 99418
* Trim #includes.Dan Gohman2010-03-248-17/+0
| | | | llvm-svn: 99416
* Reverted r99326 which added NVdVmVCVTFrm, and later renamed to NVCVTFrm.Johnny Chen2010-03-242-25/+9
| | | | | | NVCVTFrm will later be used to describe "vcvt with fractional bits". llvm-svn: 99415
* Fix minor style issues.Dan Gohman2010-03-246-211/+206
| | | | llvm-svn: 99414
* It's not necessary to call raw_ostream::close explicitly on automaticDan Gohman2010-03-241-4/+0
| | | | | | raw_ostream variables immediately before they go out of scope. llvm-svn: 99413
* Do not rely on getCompileUnit() to find source file information for a ↵Devang Patel2010-03-242-2/+77
| | | | | | subprogram. llvm-svn: 99410
* Reverted r99376. The disassembler will deal with the 2-reg format of these twoJohnny Chen2010-03-241-3/+0
| | | | | | N3VX instructions using special case code. llvm-svn: 99409
* tweak the arm if conversion heuristicJim Grosbach2010-03-241-7/+1
| | | | llvm-svn: 99402
* Fix memory leak in liveintervals: the destructor for VNInfos must be called,Torok Edwin2010-03-242-1/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | otherwise the SmallVector it contains doesn't free its memory. In most cases LiveIntervalAnalysis could get away by not calling the destructor, because VNInfos are bumpptr-allocated, and smallvectors usually don't grow. However when the SmallVector does grow it always leaks. This is the valgrind shown leak from the original testcase: ==8206== 18,304 bytes in 151 blocks are definitely lost in loss record 164 of 164 ==8206== at 0x4A079C7: operator new(unsigned long) (vg_replace_malloc.c:220) ==8206== by 0x4DB7A7E: llvm::SmallVectorBase::grow_pod(unsigned long, unsigned long) (in /home/edwin/clam/git/builds/defaul t/libclamav/.libs/libclamav.so.6.1.0) ==8206== by 0x4F90382: llvm::VNInfo::addKill(llvm::SlotIndex) (in /home/edwin/clam/git/builds/default/libclamav/.libs/libcl amav.so.6.1.0) ==8206== by 0x5126B5C: llvm::LiveIntervals::handleVirtualRegisterDef(llvm::MachineBasicBlock*, llvm::ilist_iterator<llvm::M achineInstr>, llvm::SlotIndex, llvm::MachineOperand&, unsigned int, llvm::LiveInterval&) (in /home/edwin/clam/git/builds/defau lt/libclamav/.libs/libclamav.so.6.1.0) ==8206== by 0x512725E: llvm::LiveIntervals::handleRegisterDef(llvm::MachineBasicBlock*, llvm::ilist_iterator<llvm::MachineI nstr>, llvm::SlotIndex, llvm::MachineOperand&, unsigned int) (in /home/edwin/clam/git/builds/default/libclamav/.libs/libclamav .so.6.1.0) ==8206== by 0x51278A8: llvm::LiveIntervals::computeIntervals() (in /home/edwin/clam/git/builds/default/libclamav/.libs/libc lamav.so.6.1.0) ==8206== by 0x5127CB4: llvm::LiveIntervals::runOnMachineFunction(llvm::MachineFunction&) (in /home/edwin/clam/git/builds/de fault/libclamav/.libs/libclamav.so.6.1.0) ==8206== by 0x4DAE935: llvm::FPPassManager::runOnFunction(llvm::Function&) (in /home/edwin/clam/git/builds/default/libclama v/.libs/libclamav.so.6.1.0) ==8206== by 0x4DAEB10: llvm::FunctionPassManagerImpl::run(llvm::Function&) (in /home/edwin/clam/git/builds/default/libclama v/.libs/libclamav.so.6.1.0) ==8206== by 0x4DAED3D: llvm::FunctionPassManager::run(llvm::Function&) (in /home/edwin/clam/git/builds/default/libclamav/.l ibs/libclamav.so.6.1.0) ==8206== by 0x4D8BE8E: llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*, llvm::MutexGuard const&) (in /home/edwin/clam/git/builds/default/libclamav/.libs/libclamav.so.6.1.0) ==8206== by 0x4D8CA72: llvm::JIT::getPointerToFunction(llvm::Function*) (in /home/edwin/clam/git/builds/default/libclamav/.libs/libclamav.so.6.1.0) llvm-svn: 99400
* Finally land the InvokeInst operand reordering.Gabor Greif2010-03-2414-47/+80
| | | | | | | | | | | | I have audited all getOperandNo calls now, fixing hidden assumptions. CallSite related uglyness will be eliminated successively. Note this patch has a long and griveous history, for all the back-and-forths have a look at CallSite.h's log. llvm-svn: 99399
* tighten a type and remove trailing whitespace, no functional changesGabor Greif2010-03-241-12/+12
| | | | llvm-svn: 99398
* increase const goodness and remove pointless getUser() callsGabor Greif2010-03-241-7/+9
| | | | llvm-svn: 99395
* cache result of UI.getOperandNo() instead of calling it twice, it is cheaper ↵Gabor Greif2010-03-241-2/+3
| | | | | | this way llvm-svn: 99394
* Fix comment typo.Duncan Sands2010-03-241-1/+1
| | | | llvm-svn: 99392
* MC: Direct all {fragment,section,symbol} address access through the ↵Daniel Dunbar2010-03-247-65/+114
| | | | | | MCAsmLayout object. llvm-svn: 99380
* dbg_value may end a block.Evan Cheng2010-03-241-4/+4
| | | | llvm-svn: 99378
* Mark VMOVDneon and VMOVQ as having the N2RegFrm form to help the disassembler.Johnny Chen2010-03-241-2/+5
| | | | llvm-svn: 99376
* Switch INC8r to defining its pattern in terms of X86inc_flagChris Lattner2010-03-241-4/+4
| | | | | | | and defining the add pattern with Pat<>, eliminating a use of parallel. llvm-svn: 99375
* Renamed NVdVmImmFrm and NVdVmVCVTFrm to the more proper N2RegFrm and NVCVTFrm,Johnny Chen2010-03-242-11/+11
| | | | | | respectively, and add some more comment. llvm-svn: 99373
* Remove the ConvertActions table and associated code, which is unused.Dan Gohman2010-03-242-42/+0
| | | | llvm-svn: 99372
* Add a method to get a StringMapEntry from a pointer to the stringChris Lattner2010-03-241-0/+8
| | | | | | | data it contains (similar to GetStringMapEntryFromValue). Patch by Greg Clayton! llvm-svn: 99371
* switch SDTBinaryArithWithFlags to be a multiple-result node as well.Chris Lattner2010-03-241-4/+4
| | | | llvm-svn: 99370
* Switch SDTUnaryArithWithFlags to being modeled as a two-resultChris Lattner2010-03-241-2/+4
| | | | | | | | | | | | | | ISD node. The only change in the generated isel code are comments like: < // Src: (X86dec_flag:i16 GR16:i16:$src) --- > // Src: (X86dec_flag:i16:i32 GR16:i16:$src) because now it knows that X86dec_flag returns both an i16 (for the result) and an i32 (for EFLAGS) in this case. Wewt. llvm-svn: 99369
* add plumbing for handling multiple result nodes Chris Lattner2010-03-248-27/+36
| | | | | | in some more places. llvm-svn: 99366
* Fix coding style.Dan Gohman2010-03-241-16/+17
| | | | llvm-svn: 99362
* Generalize findNearestCommonDominator to work on post-dominators,Dan Gohman2010-03-241-6/+7
| | | | | | based on a suggestion by Jochen Wilhelmy. llvm-svn: 99361
OpenPOWER on IntegriCloud