History log of /llvm-project/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp (Results 201 – 225 of 429)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3
# 3c52f028 07-May-2012 Jakob Stoklund Olesen <stoklund@2pi.dk>

Add an MF argument to TRI::getPointerRegClass() and TII::getRegClass().

The getPointerRegClass() hook can return register classes that depend on
the calling convention of the current function (ptr_r

Add an MF argument to TRI::getPointerRegClass() and TII::getRegClass().

The getPointerRegClass() hook can return register classes that depend on
the calling convention of the current function (ptr_rc_tailcall).

So far, we have been able to infer the calling convention from the
subtarget alone, but as we add support for multiple calling conventions
per target, that no longer works.

Patch by Yiannis Tsiouris!

llvm-svn: 156328

show more ...


Revision tags: llvmorg-3.1.0-rc2
# 9a091475 23-Apr-2012 Preston Gurd <preston.gurd@intel.com>

This patch fixes a problem which arose when using the Post-RA scheduler
on X86 Atom. Some of our tests failed because the tail merging part of
the BranchFolding pass was creating new basic blocks whi

This patch fixes a problem which arose when using the Post-RA scheduler
on X86 Atom. Some of our tests failed because the tail merging part of
the BranchFolding pass was creating new basic blocks which did not
contain live-in information. When the anti-dependency code in the Post-RA
scheduler ran, it would sometimes rename the register containing
the function return value because the fact that the return value was
live-in to the subsequent block had been lost. To fix this, it is necessary
to run the RegisterScavenging code in the BranchFolding pass.

This patch makes sure that the register scavenging code is invoked
in the X86 subtarget only when post-RA scheduling is being done.
Post RA scheduling in the X86 subtarget is only done for Atom.

This patch adds a new function to the TargetRegisterClass to control
whether or not live-ins should be preserved during branch folding.
This is necessary in order for the anti-dependency optimizations done
during the PostRASchedulerList pass to work properly when doing
Post-RA scheduling for the X86 in general and for the Intel Atom in particular.

The patch adds and invokes the new function trackLivenessAfterRegAlloc()
instead of using the existing requiresRegisterScavenging().
It changes BranchFolding.cpp to call trackLivenessAfterRegAlloc() instead of
requiresRegisterScavenging(). It changes the all the targets that
implemented requiresRegisterScavenging() to also implement
trackLivenessAfterRegAlloc().

It adds an assertion in the Post RA scheduler to make sure that post RA
liveness information is available when it is needed.

It changes the X86 break-anti-dependencies test to use –mcpu=atom, in order
to avoid running into the added assertion.

Finally, this patch restores the use of anti-dependency checking
(which was turned off temporarily for the 3.1 release) for
Intel Atom in the Post RA scheduler.

Patch by Andy Zhang!

Thanks to Jakob and Anton for their reviews.

llvm-svn: 155395

show more ...


Revision tags: llvmorg-3.1.0-rc1
# 76eb187c 22-Mar-2012 Hal Finkel <hfinkel@anl.gov>

PPC::DBG_VALUE must use Reg+Imm frame-index elimination even for large offsets. Fixes PR12203.

I don't have a small test case yet, but I'll try to construct one.

llvm-svn: 153240


# b25fda95 17-Mar-2012 Craig Topper <craig.topper@gmail.com>

Reorder includes in Target backends to following coding standards. Remove some superfluous forward declarations.

llvm-svn: 152997


# ef21be2c 06-Mar-2012 Roman Divacky <rdivacky@freebsd.org>

Convert PowerPC to register mask operands.

llvm-svn: 152122


# 420525ce 04-Mar-2012 Craig Topper <craig.topper@gmail.com>

Use uint16_t to store registers in callee saved register tables to reduce size of static data.

llvm-svn: 151996


# b22310fd 18-Feb-2012 Jia Liu <proljc@gmail.com>

Emacs-tag and some comment fix for all ARM, CellSPU, Hexagon, MBlaze, MSP430, PPC, PTX, Sparc, X86, XCore.

llvm-svn: 150878


# b1691cca 16-Jan-2012 Hal Finkel <hfinkel@anl.gov>

Cleanup PPC RLWINM8 vs RLWINM

No test case: output assembly will be identical.

llvm-svn: 148261


# 692d1fb3 30-Dec-2011 Hal Finkel <hfinkel@anl.gov>

Cleanup stack/frame register define/kill states. This fixes two bugs:

1. The ST*UX instructions that store and update the stack pointer did not set define/kill on R1. This became a problem when I ac

Cleanup stack/frame register define/kill states. This fixes two bugs:

1. The ST*UX instructions that store and update the stack pointer did not set define/kill on R1. This became a problem when I activated post-RA scheduling (and had incorrectly adjusted the Frames-large test).

2. eliminateFrameIndex did not kill its scavenged temporary register, and this could cause the scavenger to exhaust all available registers (and its emergency spill slot) when there were a lot of CR values to spill. The 2010-02-12-saveCR test has been adjusted to check for this.

llvm-svn: 147359

show more ...


# 67a7f18f 10-Dec-2011 Hal Finkel <hfinkel@anl.gov>

Make CR spill and restore use a reserved register. These operations cannot use the register scavenger because the scavenger can only scavenge one register and frame-index elimination may have already

Make CR spill and restore use a reserved register. These operations cannot use the register scavenger because the scavenger can only scavenge one register and frame-index elimination may have already grabbed it.

llvm-svn: 146318

show more ...


# ac9df3d4 07-Dec-2011 Hal Finkel <hfinkel@anl.gov>

make CR spill and restore 64-bit clean (no functional change), and fix some other problems found with -verify-machineinstrs

llvm-svn: 146024


# 16c74418 07-Dec-2011 Hal Finkel <hfinkel@anl.gov>

make base register selection used in eliminateFrameIndex 64-bit clean

llvm-svn: 146023


# bde7f8ff 06-Dec-2011 Hal Finkel <hfinkel@anl.gov>

add RESTORE_CR and support CR unspills

llvm-svn: 145961


# 4ec02b02 06-Dec-2011 Hal Finkel <hfinkel@anl.gov>

remove old FIXME

llvm-svn: 145960


# 8f6834df 05-Dec-2011 Hal Finkel <hfinkel@anl.gov>

enable PPC register scavenging by default (update tests and remove some FIXMEs)

llvm-svn: 145819


# 72a26e8b 05-Dec-2011 Hal Finkel <hfinkel@anl.gov>

don't include CR bit subregs in callee-saved list

llvm-svn: 145818


# b544019a 05-Dec-2011 Hal Finkel <hfinkel@anl.gov>

add register pressure for CR regs

llvm-svn: 145816


# 50f02cb2 02-Dec-2011 Nick Lewycky <nicholas@mxc.ca>

Move global variables in TargetMachine into new TargetOptions class. As an API
change, now you need a TargetOptions object to create a TargetMachine. Clang
patch to follow.

One small functionality c

Move global variables in TargetMachine into new TargetOptions class. As an API
change, now you need a TargetOptions object to create a TargetMachine. Clang
patch to follow.

One small functionality change in PTX. PTX had commented out the machine
verifier parts in their copy of printAndVerify. That now calls the version in
LLVMTargetMachine. Users of PTX who need verification disabled should rely on
not passing the command-line flag to enable it.

llvm-svn: 145714

show more ...


# 6f0ae783 22-Nov-2011 Hal Finkel <hfinkel@anl.gov>

add basic PPC register-pressure feedback; adjust the vaarg test to match the new register-allocation pattern

llvm-svn: 145065


Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1
# 61d4a20f 25-Jul-2011 Evan Cheng <evan.cheng@apple.com>

Refactor PPC target to separate MC routines from Target routines.

llvm-svn: 135942


# 67c033e6 18-Jul-2011 Evan Cheng <evan.cheng@apple.com>

Move getInitialFrameState from TargetFrameInfo to MCAsmInfo (suggestions for
better location welcome).

llvm-svn: 135438


# d60fa58b 18-Jul-2011 Evan Cheng <evan.cheng@apple.com>

Sink getDwarfRegNum, getLLVMRegNum, getSEHRegNum from TargetRegisterInfo down
to MCRegisterInfo. Also initialize the mapping at construction time.

This patch eliminate TargetRegisterInfo from Target

Sink getDwarfRegNum, getLLVMRegNum, getSEHRegNum from TargetRegisterInfo down
to MCRegisterInfo. Also initialize the mapping at construction time.

This patch eliminate TargetRegisterInfo from TargetAsmInfo. It's another step
towards fixing the layering violation.

llvm-svn: 135424

show more ...


# bc153d49 14-Jul-2011 Evan Cheng <evan.cheng@apple.com>

Next round of MC refactoring. This patch factor MC table instantiations, MC
registeration and creation code into XXXMCDesc libraries.

llvm-svn: 135184


# 194c3dc0 28-Jun-2011 Evan Cheng <evan.cheng@apple.com>

Move CallFrameSetupOpcode and CallFrameDestroyOpcode to TargetInstrInfo.

llvm-svn: 134030


# 0beca53a 28-Jun-2011 Evan Cheng <evan.cheng@apple.com>

Hide more details in tablegen generated MCRegisterInfo ctor function.

llvm-svn: 134027


12345678910>>...18