Skip to content
  1. Jan 26, 2009
  2. Jan 25, 2009
  3. Jan 24, 2009
  4. Jan 23, 2009
  5. Jan 22, 2009
  6. Jan 21, 2009
  7. Jan 20, 2009
  8. Jan 19, 2009
    • Chris Lattner's avatar
      improve compatibility with cygwin, patch by Jay Foad! · 73d7fe5a
      Chris Lattner authored
      llvm-svn: 62535
      73d7fe5a
    • Chris Lattner's avatar
      6f34e317
    • Bill Wendling's avatar
      Temporarily revert r62487. It's causing this error during a release bootstrap of · 534d2e0b
      Bill Wendling authored
      llvm-gcc. Most likely, it's miscompiling one of the "gen*" programs:
      
      /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.obj/./prev-gcc/xgcc -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.obj/./prev-gcc/ -B/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm-gcc.install/i386-apple-darwin9.6.0/bin/ -c -g -O2 -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -mdynamic-no-pic -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../llvm-gcc.src/gcc -I../../llvm-gcc.src/gcc/build -I../../llvm-gcc.src/gcc/../include -I./../intl -I../../llvm-gcc.src/gcc/../libcpp/include  -I../../llvm-gcc.src/gcc/../libdecnumber -I../libdecnumber -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/include -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.src/include -DENABLE_LLVM -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.obj/../llvm.src/include  -D_DEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS   -o build/gencondmd.o build/gencondmd.c
      ../../llvm-gcc.src/gcc/config/i386/mmx.md:926: error: expected '}' before ')' token
      ../../llvm-gcc.src/gcc/config/i386/mmx.md:926: warning: excess elements in struct initializer
      ../../llvm-gcc.src/gcc/config/i386/mmx.md:926: warning: (near initialization for 'insn_conditions[4]')
      ../../llvm-gcc.src/gcc/config/i386/mmx.md:926: error: expected '}' before ')' token
      ../../llvm-gcc.src/gcc/config/i386/mmx.md:926: error: expected ',' or ';' before ')' token
      ../../llvm-gcc.src/gcc/config/i386/mmx.md:927: error: expected identifier or '(' before ',' token
      ../../llvm-gcc.src/gcc/config/i386/sse.md:3458: error: expected identifier or '(' before ',' token
      ...
      
      llvm-svn: 62506
      534d2e0b
    • Chris Lattner's avatar
      Fix PR3016, a bug which can occur do to an invalid assumption: · f2bb4ea3
      Chris Lattner authored
      we assumed a CFG structure that would be valid when all code in 
      the function is reachable, but not all code is necessarily 
      reachable.  Do a simple, but horrible, CFG walk to check for this
      case.
      
      llvm-svn: 62487
      f2bb4ea3
    • Chris Lattner's avatar
      reduce indentation by using 'continue', no functionality change. · e381d702
      Chris Lattner authored
      llvm-svn: 62477
      e381d702
    • Chris Lattner's avatar
      Fix some problems in SpeculativelyExecuteBB. Basically, · 54f0c61d
      Chris Lattner authored
      because of dead code, a phi could use the speculated instruction
      that was not in "BB2".  Make this check explicit and tighten up 
      some other corners.  This fixes PR3292.  No testcase becauase this
      depends entirely on visitation order of blocks and requires a 
      sequence of 8 passes to repro.
      
      llvm-svn: 62476
      54f0c61d
    • Chris Lattner's avatar
      Make this a bit more explicit about which cases need the · e1c01e4e
      Chris Lattner authored
      check.  No functionality change.
      
      llvm-svn: 62474
      e1c01e4e
  9. Jan 18, 2009
    • Chris Lattner's avatar
      Fix rdar://6505632, an llc crash on 483.xalancbmk · 64b7bd7f
      Chris Lattner authored
      llvm-svn: 62470
      64b7bd7f
    • Duncan Sands's avatar
      BasicAliasAnalysis and FunctionAttrs were both · e0aa0d67
      Duncan Sands authored
      doing very similar pointer capture analysis.
      Factor out the common logic.  The new version
      is from FunctionAttrs since it does a better
      job than the version in BasicAliasAnalysis
      
      llvm-svn: 62461
      e0aa0d67
    • Nick Lewycky's avatar
      Fix copy and pasted typos that prevented strtok_r, realloc, getenv, ungetc, · 3ced0dfa
      Nick Lewycky authored
      putc, puts, perror, vscanf and vsscanf from getting annotations.
      
      Add annotations for eight printf functions, memalign, pread and pwrite.
      
      On Linux, llvm-gcc sometimes renames strdup, getc, putc, strtok_r, scanf and
      sscanf. Match the alternate function names.
      
      Fix a crash annotating opendir.
      
      Don't mark fsetpos's second parameter as nocapture. It's supposed to be
      captured.
      
      Do mark fopen's path and mode strings as nocapture. Mark ferror as readonly,
      but not fileno which may set errno.
      
      llvm-svn: 62456
      3ced0dfa
  10. Jan 17, 2009
  11. Jan 16, 2009
  12. Jan 15, 2009
  13. Jan 14, 2009
    • Chris Lattner's avatar
      8fb9480e
    • 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
Loading