Skip to content
  1. Jun 20, 2012
    • Chad Rosier's avatar
      Add an ensureMaxAlignment() function to MachineFrameInfo (analogous to · 73696927
      Chad Rosier authored
      ensureAlignment() in MachineFunction).  Also, drop setMaxAlignment() in
      favor of this new function.  This creates a main entry point to setting
      MaxAlignment, which will be helpful for future work.  No functionality
      change intended.
      
      llvm-svn: 158758
      73696927
    • Lang Hames's avatar
      Add DAG-combines for aggressive FMA formation. · 39fb1d08
      Lang Hames authored
      This patch adds DAG combines to form FMAs from pairs of FADD + FMUL or
      FSUB + FMUL. The combines are performed when:
      (a) Either
            AllowExcessFPPrecision option (-enable-excess-fp-precision for llc)
              OR
            UnsafeFPMath option (-enable-unsafe-fp-math)
          are set, and
      (b) TargetLoweringInfo::isFMAFasterThanMulAndAdd(VT) is true for the type of
          the FADD/FSUB, and
      (c) The FMUL only has one user (the FADD/FSUB).
      
      If your target has fast FMA instructions you can make use of these combines by
      overriding TargetLoweringInfo::isFMAFasterThanMulAndAdd(VT) to return true for
      types supported by your FMA instruction, and adding patterns to match ISD::FMA
      to your FMA instructions.
      
      llvm-svn: 158757
      39fb1d08
    • Jakob Stoklund Olesen's avatar
      80 col. · 2db1125b
      Jakob Stoklund Olesen authored
      llvm-svn: 158755
      2db1125b
  2. Jun 19, 2012
  3. Jun 18, 2012
  4. Jun 17, 2012
  5. Jun 16, 2012
  6. Jun 15, 2012
    • Manman Ren's avatar
      ARM: optimization for sub+abs. · e0763c74
      Manman Ren authored
      This patch will optimize abs(x-y)
      FROM
      sub, movs, rsbmi
      TO
      subs, rsbmi
      
      For abs, we will use cmp instead of movs. This is necessary because we already
      have an existing peephole pass which optimizes away cmp following sub.
      
      rdar: 11633193
      llvm-svn: 158551
      e0763c74
Loading