LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 7 - [instcombine] Should eliminate no-op casts in varargs calls
Summary: [instcombine] Should eliminate no-op casts in varargs calls
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Scalar Optimizations (show other bugs)
Version: trunk
Hardware: PC Linux
: P enhancement
Assignee: Chris Lattner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-07 14:11 PDT by Chris Lattner
Modified: 2010-02-22 12:55 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
Anabolic (deleted)
2008-02-03 08:10 PST, spammer
Details
Anavar (deleted)
2008-02-03 08:17 PST, spammer
Details
Clenbuterol (deleted)
2008-02-03 08:28 PST, spammer
Details
Steroid (deleted)
2008-02-03 08:32 PST, spammer
Details
Testosterone (deleted)
2008-02-03 08:32 PST, spammer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lattner 2003-10-07 14:11:23 PDT
The cast in this testcase should be eliminated:

declare void %test2(int, ...)

void %test(sbyte* %A) {
  %B = cast sbyte* %A to int*
  call void %test2(int 0, int* %B)
  ret void
}
Comment 2 spammer 2008-02-03 08:10:48 PST
Created attachment 1371 [details]
Anabolic

Anabolic
Comment 3 spammer 2008-02-03 08:17:26 PST
Created attachment 1372 [details]
Anavar

Anavar
Comment 4 spammer 2008-02-03 08:28:54 PST
Created attachment 1373 [details]
Clenbuterol

Clenbuterol
Comment 5 spammer 2008-02-03 08:32:13 PST
Created attachment 1374 [details]
Steroid

Steroid
Comment 6 spammer 2008-02-03 08:32:57 PST
Created attachment 1375 [details]
Testosterone

Testosterone
Comment 7 Tanya Lattner 2008-02-03 23:48:06 PST
The content of attachment 1371 [details] has been deleted by
    Tanya Lattner <tonic@nondot.org>
without providing any reason.

The token used to delete this attachment was generated at 2008-02-03 23:48:04.
Comment 8 Tanya Lattner 2008-02-03 23:48:20 PST
The content of attachment 1372 [details] has been deleted by
    Tanya Lattner <tonic@nondot.org>
without providing any reason.

The token used to delete this attachment was generated at 2008-02-03 23:48:17.
Comment 9 Tanya Lattner 2008-02-03 23:48:32 PST
The content of attachment 1373 [details] has been deleted by
    Tanya Lattner <tonic@nondot.org>
without providing any reason.

The token used to delete this attachment was generated at 2008-02-03 23:48:29.
Comment 10 Tanya Lattner 2008-02-03 23:48:42 PST
The content of attachment 1374 [details] has been deleted by
    Tanya Lattner <tonic@nondot.org>
without providing any reason.

The token used to delete this attachment was generated at 2008-02-03 23:48:38.
Comment 11 Tanya Lattner 2008-02-03 23:48:54 PST
The content of attachment 1375 [details] has been deleted by
    Tanya Lattner <tonic@nondot.org>
without providing any reason.

The token used to delete this attachment was generated at 2008-02-03 23:48:52.