Skip to content
  1. Jan 16, 2009
  2. Jan 15, 2009
  3. Jan 14, 2009
    • Chris Lattner's avatar
      8fb9480e
    • Devang Patel's avatar
      xfail for now. · 08e5e62f
      Devang Patel authored
      llvm-svn: 62243
      08e5e62f
    • Richard Osborne's avatar
      Add pseudo instructions to the XCore for (load|store|load address) of a · 4359325b
      Richard Osborne authored
      frame index. eliminateFrameIndex will replace these instructions with
      (LDWSP|STWSP|LDAWSP) or (LDW|STW|LDAWF) if a frame pointer is in use.
      
      This fixes PR 3324. Previously we used LDWSP, STWSP, LDAWSP before frame
      pointer elimination. However since they were marked as implicitly using
      SP they could not be rematerialised.
      
      llvm-svn: 62238
      4359325b
    • Nuno Lopes's avatar
      fix crash in the case when some arg is null · 0971e775
      Nuno Lopes authored
      llvm-svn: 62236
      0971e775
    • Gabor Greif's avatar
      minor simplification · 191812fe
      Gabor Greif authored
      llvm-svn: 62232
      191812fe
    • Dale Johannesen's avatar
      Fix the time regression I introduced in 464.h264ref with · 1f0e0e7c
      Dale Johannesen authored
      my earlier patch to this file.
      
      The issue there was that all uses of an IV inside a loop
      are actually references to Base[IV*2], and there was one
      use outside that was the same but LSR didn't see the base
      or the scaling because it didn't recurse into uses outside
      the loop; thus, it used base+IV*scale mode inside the loop
      instead of pulling base out of the loop.  This was extra bad
      because register pressure later forced both base and IV into
      memory.  Doing that recursion, at least enough
      to figure out addressing modes, is a good idea in general;
      the change in AddUsersIfInteresting does this.  However,
      there were side effects....
      
      It is also possible for recursing outside the loop to
      introduce another IV where there was only 1 before (if
      the refs inside are not scaled and the ref outside is).
      I don't think this is a common case, but it's in the testsuite.
      It is right to be very aggressive about getting rid of
      such introduced IVs (CheckForIVReuse and the handling of
      nonzero RewriteFactor in StrengthReduceStridedIVUsers).
      In the testcase in question the new IV produced this way
      has both a nonconstant stride and a nonzero base, neither
      of which was handled before.  And when inserting 
      new code that feeds into a PHI, it's right to put such 
      code at the original location rather than in the PHI's 
      immediate predecessor(s) when the original location is outside 
      the loop (a case that couldn't happen before)
      (RewriteInstructionToUseNewBase); better to avoid making
      multiple copies of it in this case.
      
      Also, the mechanism for keeping SCEV's corresponding to GEP's
      no longer works, as the GEP might change after its SCEV
      is remembered, invalidating the SCEV, and we might get a bad
      SCEV value when looking up the GEP again for a later loop.  
      This also couldn't happen before, as we weren't recursing
      into GEP's outside the loop.
      
      Also, when we build an expression that involves a (possibly
      non-affine) IV from a different loop as well as an IV from
      the one we're interested in (containsAddRecFromDifferentLoop),
      don't recurse into that.  We can't do much with it and will
      get in trouble if we try to create new non-affine IVs or something.
      
      More testcases are coming.
      
      llvm-svn: 62212
      1f0e0e7c
    • Mikhail Glushenkov's avatar
      Make -o a prefix option. · 66068b3b
      Mikhail Glushenkov authored
      Both 'llvmc -o file' and 'llvmc -ofile' should work.
      
      llvm-svn: 62211
      66068b3b
    • Devang Patel's avatar
      Do not construct debug scope if RootScope *is* null. · dedd3e1e
      Devang Patel authored
      llvm-svn: 62209
      dedd3e1e
    • Ted Kremenek's avatar
      Add member template MallocAllocator::Allocate(Num) (to match the same function... · adeeb1af
      Ted Kremenek authored
      Add member template MallocAllocator::Allocate(Num) (to match the same function in BumpPtrAllocator).
      
      llvm-svn: 62202
      adeeb1af
    • Chris Lattner's avatar
      rewrite OptimizeAwayTrappingUsesOfLoads to 1) avoid a temporary · 2538eb66
      Chris Lattner authored
      vector and extraneous loop over it, 2) not delete globals used by
      phis/selects etc which could actually be useful.  This fixes PR3321.
      Many thanks to Duncan for narrowing this down.
      
      llvm-svn: 62201
      2538eb66
    • Devang Patel's avatar
      Removoe MachineModuleInfo methods (and related DebugInfoDesc class hierarchy)... · 3c82aa02
      Devang Patel authored
      Removoe MachineModuleInfo methods (and related DebugInfoDesc class  hierarchy) that were used to handle debug info.
      
      llvm-svn: 62199
      3c82aa02
    • Nuno Lopes's avatar
      fix memleaks · b0a78f8f
      Nuno Lopes authored
      llvm-svn: 62198
      b0a78f8f
    • Dan Gohman's avatar
      BT appears to be available on all >= i386 chips. · a63bede3
      Dan Gohman authored
      llvm-svn: 62196
      a63bede3
Loading