llvm-6502/include/llvm
Hal Finkel 2e80991a77 Reapply r178845 with fix - Fix bug in PEI's virtual-register scavenging
This fixes PEI as previously described, but correctly handles the case where
the instruction defining the virtual register to be scavenged is the first in
the block. Arnold provided me with a bugpoint-reduced test case, but even that
seems too large to use as a regression test. If I'm successful in cleaning it
up then I'll commit that as well.

Original commit message:

    This change fixes a bug that I introduced in r178058. After a register is
    scavenged using one of the available spills slots the instruction defining the
    virtual register needs to be moved to after the spill code. The scavenger has
    already processed the defining instruction so that registers killed by that
    instruction are available for definition in that same instruction. Unfortunately,
    after this, the scavenger needs to iterate through the spill code and then
    visit, again, the instruction that defines the now-scavenged register. In order
    to avoid confusion, the register scavenger needs the ability to 'back up'
    through the spill code so that it can again process the instructions in the
    appropriate order. Prior to this fix, once the scavenger reached the
    just-moved instruction, it would assert if it killed any registers because,
    having already processed the instruction, it believed they were undefined.

    Unfortunately, I don't yet have a small test case. Thanks to Pranav Bhandarkar
    for diagnosing the problem and testing this fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178919 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-05 22:31:56 +00:00
..
ADT Document the return value of SmallSet insert. 2013-04-04 04:54:21 +00:00
Analysis CostModel: Add parameter to instruction cost to further classify operand values 2013-04-04 23:26:21 +00:00
Assembly
Bitcode Whitespace cleanup 2013-04-01 02:28:07 +00:00
CodeGen Reapply r178845 with fix - Fix bug in PEI's virtual-register scavenging 2013-04-05 22:31:56 +00:00
Config Refine fenv.h handling: check if the desired macros exist, before using 2013-03-25 13:13:33 +00:00
DebugInfo
ExecutionEngine Add support for vector data types in the LLVM interpreter. 2013-04-01 15:53:30 +00:00
IR Add MDBuilder utilities for path-aware TBAA. 2013-04-02 19:50:49 +00:00
IRReader Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00
MC
Object Define versions of Section that are explicitly marked as little endian. 2013-04-05 18:45:28 +00:00
Option
Support Implements low-level object file format specific output for COFF and 2013-04-03 18:31:38 +00:00
TableGen Make sure TableGen exits with an error code after printing errors. 2013-03-20 20:43:11 +00:00
Target Use the target options specified on a function to reset the back-end. 2013-04-05 21:52:40 +00:00
Transforms
AutoUpgrade.h
CMakeLists.txt
DebugInfo.h Revert "Adding DIImportedModules to DIScopes." 2013-03-28 02:44:59 +00:00
DIBuilder.h Revert "Adding DIImportedModules to DIScopes." 2013-03-28 02:44:59 +00:00
GVMaterializer.h
InitializePasses.h Remove the old CodePlacementOpt pass. 2013-03-29 17:14:24 +00:00
InstVisitor.h
LinkAllIR.h
LinkAllPasses.h
Linker.h
Pass.h
PassAnalysisSupport.h
PassManager.h
PassManagers.h
PassRegistry.h
PassSupport.h