llvm-6502/include/llvm/Target
Preston Gurd 2e2efd9600 Generic Bypass Slow Div
- CodeGenPrepare pass for identifying div/rem ops
- Backend specifies the type mapping using addBypassSlowDivType
- Enabled only for Intel Atom with O2 32-bit -> 8-bit
- Replace IDIV with instructions which test its value and use DIVB if the value
is positive and less than 256.
- In the case when the quotient and remainder of a divide are used a DIV
and a REM instruction will be present in the IR. In the non-Atom case
they are both lowered to IDIVs and CSE removes the redundant IDIV instruction,
using the quotient and remainder from the first IDIV. However,
due to this optimization CSE is not able to eliminate redundant
IDIV instructions because they are located in different basic blocks.
This is overcome by calculating both the quotient (DIV) and remainder (REM)
in each basic block that is inserted by the optimization and reusing the result
values when a subsequent DIV or REM instruction uses the same operands.
- Test cases check for the presents of the optimization when calculating
either the quotient, remainder,  or both.

Patch by Tyler Nowicki!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163150 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-04 18:22:17 +00:00
..
Mangler.h
Target.td Tristate mayLoad, mayStore, and hasSideEffects. 2012-08-23 19:34:46 +00:00
TargetCallingConv.h
TargetCallingConv.td
TargetData.h Revert r161371. Removing the 'const' before Type is a "good thing". 2012-08-07 05:51:59 +00:00
TargetELFWriterInfo.h
TargetFrameLowering.h
TargetInstrInfo.h Add a bit of documentation to copyPhysReg. 2012-08-29 23:52:55 +00:00
TargetIntrinsicInfo.h
TargetItinerary.td I'm introducing a new machine model to simultaneously allow simple 2012-07-07 04:00:00 +00:00
TargetJITInfo.h
TargetLibraryInfo.h Make MemoryBuiltins aware of TargetLibraryInfo. 2012-08-29 15:32:21 +00:00
TargetLowering.h Generic Bypass Slow Div 2012-09-04 18:22:17 +00:00
TargetLoweringObjectFile.h
TargetMachine.h
TargetOpcodes.h
TargetOptions.h Add support for the --param ssp-buffer-size= driver option. 2012-08-21 16:15:24 +00:00
TargetRegisterInfo.h Add TargetRegisterInfo::hasRegUnit(). 2012-08-02 14:45:53 +00:00
TargetSchedule.td Added MispredictPenalty to SchedMachineModel. 2012-08-08 02:44:16 +00:00
TargetSelectionDAG.td Remove extra MayLoad/MayStore flags from atomic_load/store. 2012-08-28 03:11:32 +00:00
TargetSelectionDAGInfo.h
TargetSubtargetInfo.h