Skip to content
  1. Dec 29, 2007
  2. Dec 28, 2007
    • Owen Anderson's avatar
      Repair a transform that Chris noticed a bug in. Thanks to Nicholas for... · 7363914e
      Owen Anderson authored
      Repair a transform that Chris noticed a bug in.  Thanks to Nicholas for pointing out my stupid mistakes when writing this patch. :-)
      
      llvm-svn: 45384
      7363914e
    • Chris Lattner's avatar
      disable this instcombine xform, it miscompiles: · 5179819b
      Chris Lattner authored
      define i32 @main() {
      entry:
      	%z = alloca i32		; <i32*> [#uses=2]
      	store i32 0, i32* %z
      	%tmp = load i32* %z		; <i32> [#uses=1]
      	%sub = sub i32 %tmp, 1		; <i32> [#uses=1]
      	%cmp = icmp ult i32 %sub, 0		; <i1> [#uses=1]
      	%retval = select i1 %cmp, i32 1, i32 0		; <i32> [#uses=1]
      	ret i32 %retval
      }
      
      into ret 1, instead of ret 0.
      
      Christopher, please investigate.
      
      llvm-svn: 45383
      5179819b
  3. Dec 25, 2007
  4. Dec 24, 2007
  5. Dec 22, 2007
  6. Dec 21, 2007
    • Duncan Sands's avatar
      Make DAE not wipe out attributes on calls, and not drop · 6a7703ed
      Duncan Sands authored
      return attributes on the floor.  In the case of a call
      to a varargs function where the varargs arguments are
      being removed, any call attributes on those arguments
      need to be dropped.  I didn't do this because I plan to
      make it illegal to have such attributes (see next patch).
      With this change, compiling the gcc filter2 eh test at -O0
      and then running opt -std-compile-opts on it results in
      a correctly working program (compiling at -O1 or higher
      results in the test failing due to a problem with how we
      output eh info into the IR).
      
      llvm-svn: 45285
      6a7703ed
  7. Dec 20, 2007
  8. Dec 19, 2007
  9. Dec 18, 2007
  10. Dec 17, 2007
  11. Dec 16, 2007
    • Duncan Sands's avatar
      Revert this part of r45073 until the verifier is · 56ed4803
      Duncan Sands authored
      changed not to reject invoke of inline asm.
      
      llvm-svn: 45077
      56ed4803
    • Duncan Sands's avatar
      Make instcombine promote inline asm calls to 'nounwind' · 8e4847ee
      Duncan Sands authored
      calls.  Remove special casing of inline asm from the
      inliner.  There is a potential problem: the verifier
      rejects invokes of inline asm (not sure why).  If an
      asm call is not marked "nounwind" in some .ll, and
      instcombine is not run, but the inliner is run, then
      an illegal module will be created.  This is bad but
      I'm not sure what the best approach is.  I'm tempted
      to remove the check in the verifier...
      
      llvm-svn: 45073
      8e4847ee
  12. Dec 13, 2007
  13. Dec 12, 2007
  14. Dec 10, 2007
Loading