Re: [PATCH] Fold unfolded constants from initializers

2019-05-03 Thread Richard Biener
On Wed, Mar 13, 2019 at 12:35 PM Richard Biener wrote: > > > This fixes a missed optimization in the testcase in PR89698 > where we fail to fold an access to a virtual table slot because > it is (int (*) ()) 0 - yes, an unfolded INTEGER_CST. Callers > are not happy with this so the following

[PATCH] Fold unfolded constants from initializers

2019-03-13 Thread Richard Biener
This fixes a missed optimization in the testcase in PR89698 where we fail to fold an access to a virtual table slot because it is (int (*) ()) 0 - yes, an unfolded INTEGER_CST. Callers are not happy with this so the following makes sure to return a properly folded constant via