llvm-project/llvm/test/CodeGen/MSP430
Nirav Dave 54e22f33d9 In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled.
Recommiting with compiler time improvements

    Recommitting after fixup of 32-bit aliasing sign offset bug in DAGCombiner.

    * Simplify Consecutive Merge Store Candidate Search

    Now that address aliasing is much less conservative, push through
    simplified store merging search and chain alias analysis which only
    checks for parallel stores through the chain subgraph. This is cleaner
    as the separation of non-interfering loads/stores from the
    store-merging logic.

    When merging stores search up the chain through a single load, and
    finds all possible stores by looking down from through a load and a
    TokenFactor to all stores visited.

    This improves the quality of the output SelectionDAG and the output
    Codegen (save perhaps for some ARM cases where we correctly constructs
    wider loads, but then promotes them to float operations which appear
    but requires more expensive constant generation).

    Some minor peephole optimizations to deal with improved SubDAG shapes (listed below)

    Additional Minor Changes:

      1. Finishes removing unused AliasLoad code

      2. Unifies the chain aggregation in the merged stores across code
         paths

      3. Re-add the Store node to the worklist after calling
         SimplifyDemandedBits.

      4. Increase GatherAllAliasesMaxDepth from 6 to 18. That number is
         arbitrary, but seems sufficient to not cause regressions in
         tests.

      5. Remove Chain dependencies of Memory operations on CopyfromReg
         nodes as these are captured by data dependence

      6. Forward loads-store values through tokenfactors containing
          {CopyToReg,CopyFromReg} Values.

      7. Peephole to convert buildvector of extract_vector_elt to
         extract_subvector if possible (see
         CodeGen/AArch64/store-merge.ll)

      8. Store merging for the ARM target is restricted to 32-bit as
         some in some contexts invalid 64-bit operations are being
         generated. This can be removed once appropriate checks are
         added.

    This finishes the change Matt Arsenault started in r246307 and
    jyknight's original patch.

    Many tests required some changes as memory operations are now
    reorderable, improving load-store forwarding. One test in
    particular is worth noting:

      CodeGen/PowerPC/ppc64-align-long-double.ll - Improved load-store
      forwarding converts a load-store pair into a parallel store and
      a memory-realized bitcast of the same value. However, because we
      lose the sharing of the explicit and implicit store values we
      must create another local store. A similar transformation
      happens before SelectionDAG as well.

    Reviewers: arsenm, hfinkel, tstellarAMD, jyknight, nhaehnle

llvm-svn: 297695
2017-03-14 00:34:14 +00:00
..
2009-05-10-CyclicDAG.ll
2009-05-17-Rot.ll
2009-05-17-Shift.ll
2009-05-19-DoubleSplit.ll
2009-08-25-DynamicStackAlloc.ll
2009-09-18-AbsoluteAddr.ll
2009-10-10-OrImpDef.ll
2009-11-05-8BitLibcalls.ll
2009-11-08-InvalidResNo.ll
2009-11-20-NewNode.ll
2009-12-21-FrameAddr.ll
2009-12-22-InlineAsm.ll
2010-05-01-CombinerAnd.ll
AddrMode-bis-rx.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
AddrMode-bis-xr.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
AddrMode-mov-rx.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
AddrMode-mov-xr.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
BranchSelector.ll Fix PR27500: on MSP430 the branch destination offset is measured in words, not bytes. 2016-11-08 17:19:59 +00:00
DbgValueOtherTargets.test
Inst8mi.ll
Inst8mm.ll
Inst8mr.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
Inst8ri.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
Inst8rm.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
Inst8rr.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
Inst16mi.ll
Inst16mm.ll In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled. 2017-03-14 00:34:14 +00:00
Inst16mr.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
Inst16ri.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
Inst16rm.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
Inst16rr.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
asm-clobbers.ll
bit.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
byval.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
cc_args.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
cc_ret.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
flt_rounds.ll [SelectionDAGBuilder] Support llvm.flt.rounds on targets where i32 is not legal 2016-10-10 20:45:15 +00:00
fp.ll
indirectbr.ll
indirectbr2.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
inline-asm.ll
jumptable.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
lit.local.cfg
memset.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
misched-msp430.ll
mult-alt-generic-msp430.ll
postinc.ll
setcc.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
shifts.ll
spill-to-stack.ll
struct-return.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00
transient-stack-alignment.ll
umulo-16.ll [CodeGen] Fix result type for SMULO/UMULO legalization 2016-12-06 22:49:36 +00:00
vararg.ll [MSP430] Add SRet support to MSP430 target 2017-03-02 20:25:10 +00:00