Re: [Open64-devel] A wopt epre/sr bug

2014-10-13 Thread Yiran Wang
It sounds like no way to update the alias information. In that case, it has to be set to NULL. For this specific case here, only the FSA information becomes invalid, I think, and is there any way to ignore this part only? Regards, Yiran On Mon, Oct 13, 2014 at 8:11 AM, Jian-Xin Lai wrote: > Hi,

Re: [Open64-devel] one more question about strength reduction and SSA PRE

2013-07-02 Thread Yiran Wang
Set_omitted()" in opt_etable.cxx and see that > "occur->Stmt()->Iv_update()" is one reason an expression is set omitted. > > Fred > > > On 06/26/2013 05:07 PM, Yiran Wang wrote: > > Hi All, > > This one looks somewhat similar to the last example, but

Re: [Open64-devel] one more question about strength reduction and SSA PRE

2013-06-27 Thread Yiran Wang
tle: > > for(i = 0; i< j; i++) > { > int t = N*N; > x += t << 3; > z = x + N; > y = y + *x + *z; > } > > Will the N*N be hoisted? > > > 2013/6/27 Yiran Wang > >> Hi All, >> >> This one looks somewhat similar t

[Open64-devel] one more question about strength reduction and SSA PRE

2013-06-26 Thread Yiran Wang
lt looks good for this test case. I wonder if there is any correctness issue for some other test case, or performance issue? It should be noted one strength reduction transformation is done for z for this case. Also replacing "N>>=3;" with "N*=5;" results i

Re: [Open64-devel] sub-optimal strength reduction bug?

2012-07-12 Thread Yiran Wang
compiler may find more redundancy in the loop. -yiran On Thu, Jul 12, 2012 at 5:04 PM, Sun Chan wrote: > the adding of 44 was copy propagated into the loop. there used to be > code that guards such kind of propagation inside the loop > Sun > > On Fri, Jul 13, 2012 at 7:53 AM, Yi

Re: [Open64-devel] sub-optimal strength reduction bug?

2012-07-12 Thread Yiran Wang
if x is local and is dead outside of the loop, the add to x should be > > eliminated. if not, it is an alias issue > > Sun > > > > On Fri, Jul 13, 2012 at 7:12 AM, Yiran Wang > wrote: > >> Hi Sun, > >> > >> Thanks for your reply. &g

Re: [Open64-devel] sub-optimal strength reduction bug?

2012-07-12 Thread Yiran Wang
urn, which instruction is redundant? > Sun > > On Fri, Jul 13, 2012 at 7:21 AM, Sun Chan wrote: > > if x is local and is dead outside of the loop, the add to x should be > > eliminated. if not, it is an alias issue > > Sun > > > > On Fri, Jul 13, 2012 at

Re: [Open64-devel] sub-optimal strength reduction bug?

2012-07-12 Thread Yiran Wang
te: > > hi buddy, this loop can be vectorized: > > > > v_init = > > v_inc = <4d, 4d, 4d, 4d> > > > > the statement can be vect into: > > a[0:3] = v_init; > > v_init += v_inc; > > > > > > > > On 07/12

[Open64-devel] sub-optimal strength reduction bug?

2012-07-12 Thread Yiran Wang
Hi All, It looks like strength reduction is not optimal for the following example? 7 instructions per iteration is used, but 4 (or 5 without LFTR) are necessary. Best Regards, Yiran Wang bash-4.0$ cat x.c int foo(int x, int b, int *__restrict a) { int i; int c,d ; c = b*60; d = c+44

Re: [Open64-devel] Cannot build open64 5.0 from source

2011-12-09 Thread Yiran Wang
I think we may add some detection of this pitfall, as it is a bit common, i.e. to have a brief look if it is the top-level directory of open64 source in "configure". Best Regards, Yiran On Thu, Dec 8, 2011 at 9:27 PM, Wu Yongchong wrote: > You should not configure and make open64 in the top dir

Re: [Open64-devel] Review request for fix bug798(O0 does not do dce)[WOPT, infrastructure]

2011-12-06 Thread Yiran Wang
not supposed to be an "optimization" phase. For the given > phase, VHO might be a good place to eliminate the unreachable case > when lowering the switch. > > 2011/12/7 Yiran Wang : > > I am not a gatekeeper, but excuse me, I wonder if why not do such kind of > > stuff

Re: [Open64-devel] Review request for fix bug798(O0 does not do dce)[WOPT, infrastructure]

2011-12-06 Thread Yiran Wang
I am not a gatekeeper, but excuse me, I wonder if why not do such kind of stuff with WGEN. Regards, Yiran On Tue, Dec 6, 2011 at 6:53 PM, Gang Yu wrote: > Hi, > >Could a gatekeeper please help review the fix for bug798( > http://bugs.open64.net/show_bug.cgi?id=798)? > > This is a bug for a

Re: [Open64-devel] code review for fix of bug 926( compiler assertion for copy propagation of MLOAD ) [WOPT]

2011-11-29 Thread Yiran Wang
long time. Anyway you can make that work? > Sun > > On Tue, Nov 29, 2011 at 12:37 PM, Yiran Wang wrote: > >> Em, I think you are saying that once entered, it would not exit, but the >> loop is not entered at the very beginning, as the initial test would fail. >> >> Reg

Re: [Open64-devel] code review for fix of bug 926( compiler assertion for copy propagation of MLOAD ) [WOPT]

2011-11-28 Thread Yiran Wang
iscuss this > Sun > > On Tue, Nov 29, 2011 at 8:41 AM, Yiran Wang wrote: > >> Hi All, >> >> Could a gatekeeper review this patch? >> >> The test case is as following, and the bug is triggered, when compiling >> it with -O2. >> >> #in

[Open64-devel] code review for fix of bug 926( compiler assertion for copy propagation of MLOAD ) [WOPT]

2011-11-28 Thread Yiran Wang
Hi All, Could a gatekeeper review this patch? The test case is as following, and the bug is triggered, when compiling it with -O2. #include struct x{ int y; int z; }; int foo() { struct x xyz,abc; int i; memset(&xyz,0,sizeof(xyz)); i = 1; while( i < 0 ) { abc.y += xyz.z;

Re: [Open64-devel] A proposal on WHIRL change for ZDL targets

2011-07-08 Thread Yiran Wang
Hi Gang, A silly question, is the ZDL loop supposed to have at least one iteration ? Best Regards, Yiran On Sat, Jul 9, 2011 at 6:45 AM, Gang Yu wrote: > > On Sat, Jul 9, 2011 at 12:40 AM, Ding-Kai Chen wrote: > >> >> Have you looked into binding to ZDL inside CG instead of at WHIRL level? >>

Re: [Open64-devel] Code review request for open64 debug build failure with r3574

2011-04-27 Thread Yiran Wang
I think it is good to improve the message, as we allow all 1s and all 0s. Regards, yiran On Thu, Apr 28, 2011 at 1:09 PM, Hui Shi wrote: > > Would gatekeeper help review this fix? > > I1,I2,I4 will be sign extend to I8 and store in TCON_I8, > So when I1,I2,I4 is negative, TCON_V1 can be 0xf

Re: [Open64-devel] code review for a fix in LNO scalar-expand

2011-04-13 Thread Yiran Wang
The SGI document on WHIRL also mentioned this OPR. yiran On Thu, Apr 14, 2011 at 2:31 PM, Yiran Wang wrote: > I do not know. But, it seems like the operator is not new at all, but > somebody (probably PathScale?) use it in some different way here. > OPR_NEG = 87, > OP

Re: [Open64-devel] code review for a fix in LNO scalar-expand

2011-04-13 Thread Yiran Wang
= 111, OPR_STBITS = 112, The above is a fragment from opcode_gen_core.h. Best Regards, yiran On Thu, Apr 14, 2011 at 2:23 PM, Sun Chan wrote: > my question is, who added this operator? This is a change in WHIRL > Sun > > On Thu, Apr 14, 2011 at 2:20 PM, Yiran Wang wrote: >&g

[Open64-devel] code review for a fix in LNO scalar-expand

2011-04-12 Thread Yiran Wang
Hi, could a gatekeeper please review this patch? This change is to deal with the OPR_PAREN nodes in this subroutine, which is inserted by simd-mark-code phase. Best Regards, yiran Index: osprey/be/lno/scalar_expand.cxx === --- ospre

[Open64-devel] code review for a bug fix in CG load-execution

2011-04-12 Thread Yiran Wang
Hi, could a gatekeeper review this patch? Such a combination is abandoned for load-execution as the ld_op is a load up higher part of a SSE register, while the alu_op is doing conversion on the lower part (implicitly). Best Regards, Yiran Index: osprey/be/cg/x8664/ebo_special.cxx ==

[Open64-devel] code review for a fix in CG-CFLOW

2011-04-12 Thread Yiran Wang
Hi All, Could a gatekeeper please review this patch? It is about to find out constant branches. If the compare instruction has an operator in memory, it is not possible to evaluate it at compile time. Best Regards, Yiran Index: osprey/be/cg/cflow.cxx

[Open64-devel] Invitation to connect on LinkedIn

2011-04-12 Thread Yiran Wang via LinkedIn
LinkedIn Yiran Wang requested to add you as a connection on LinkedIn: -- Bin, I'd like to add you to my professional network on LinkedIn. - Yiran Accept invitation from Yiran Wang http://www.linkedin.com/e/bqhq7t-gmf1gx

[Open64-devel] code review for a patch about flatten of eh ranges

2011-03-30 Thread Yiran Wang
Hi, Could a gatekeeper please review this patch? When the eh-range get flattened, this specific eh-range generated is part of the original range "j", rather than "i". Best Regards, yiran Index: osprey/be/cg/eh_region.cxx === --- os

[Open64-devel] Fwd: code review for fix of a bug: -m32 -march=athlon -O0 compiler assertion with complex*16

2011-03-29 Thread Yiran Wang
MTYPE_C8 == ty && Opt_Level != 0) { /* complex const converted to real const */ if (k0const && SIMPNODE_rtype(k0) == ty) Best Regards, yiran ------ Forwarded message -- From: Yiran Wang Date: Wed, Mar 30, 2011 at 1:16 PM Subject: code review for fix of

[Open64-devel] code review for fix of a bug: -m32 -march=athlon -O0 compiler assertion with complex*16

2011-03-29 Thread Yiran Wang
Hi, Could a gatekeeper please review this patch? The command line: openf90 -m32 -march=athlon x.f -c -keep -O0 The source file: program test real*8 :: ms complex*16 :: direct, crossed ms = 2.*(direct+crossed) end The output : ### Assertion failure at l

Re: [Open64-devel] Code Review Request (bug #721)

2011-02-27 Thread Yiran Wang
at 2:17 PM, Yiran Wang wrote: > Hi Sun, > > I investigate the bug a little bit, and the findings are: > > 0. Usually, -pic and -pie is linker option, while -fpic and -fpie is option > for BE (for opencc). And -pie and -pic have the same effect, and -fpie and > -fpic have the sa

Re: [Open64-devel] Code Review Request (bug #721)

2011-02-27 Thread Yiran Wang
Hi Sun, I investigate the bug a little bit, and the findings are: 0. Usually, -pic and -pie is linker option, while -fpic and -fpie is option for BE (for opencc). And -pie and -pic have the same effect, and -fpie and -fpic have the same effect, for open64 (or it would check if an executable is be

[Open64-devel] code review for bug 711

2011-01-12 Thread Yiran Wang
Hi, Could a gatekeeper please review this patch? The issue is that when r->high is a const, the call to method cr() would trigger an assertion. As the fix, for such case, it is different from this_vr->High. Best Regards, yiran Index: osprey/be/opt/opt_lmv_helper.cxx

Re: [Open64-devel] A bug

2010-10-31 Thread Yiran Wang
luckily, it seems like there is no reference at all Regards, yiran On Mon, Nov 1, 2010 at 2:31 PM, Hucheng Zhou wrote: > opt_etable.h > > *voidReset_no_lftr(void) { _flags &= EWF_NO_LFTR; }* > * > * > *which should be:* > * > * > *voidReset_no_lftr(void) { _flags &= ~EWF

Re: [Open64-devel] IF NODE WHIRL question

2010-10-08 Thread Yiran Wang
Agree, when the value is unwanted explicitly, the generate WHIRL is just the same, i.e. #include #include int main() { int i = rand(); printf("i = %i\n", i); if (i) printf("i = %i\n", i); return 0; } On Thu, Oct 7, 2010 at 1:02 PM, Handong Ye wrote: > A wild guess. The code needs

[Open64-devel] Fwd: code review for fix of bug 633

2010-09-10 Thread Yiran Wang
-- Forwarded message -- From: Yiran Wang Date: Fri, Sep 10, 2010 at 4:25 PM Subject: Re: [Open64-devel] code review for fix of bug 633 To: Sun Chan This chunk is where the variable ret_mtype is first defined. It looks like if the result is needed, it is set in someway, else it

[Open64-devel] code review for fix of bug 643

2010-09-10 Thread Yiran Wang
Hi All, Could some gatekeeper please review this change? The issue is as following: For a goto to outer block, the cleanup of local objects are needed. While, for call of destructor for each of them, the call is nested in a eh-region, as the destructor itself may throw exceptions. As we can see,

Re: [Open64-devel] code review for fix of bug 633

2010-09-10 Thread Yiran Wang
: > why is F8 the default, but not others? > Sun > > On Sat, Sep 11, 2010 at 6:08 AM, Yiran Wang wrote: > > Hi Sun, > > Sure. > > The situation is as following. > > There is implementation of the intrinsic "sqrt", for a number of types, > such >

Re: [Open64-devel] code review for fix of bug 633

2010-09-10 Thread Yiran Wang
not enough for me to tell why F8 is the > right type, but not, say, F4, or V8 > Sun > > On Sat, Sep 11, 2010 at 2:58 AM, Yiran Wang wrote: > > Hi All, > > Could a gatekeeper please review it? > > Simply, the ret_mtype should be reset automatically, if it is

[Open64-devel] code review for fix of bug 633

2010-09-10 Thread Yiran Wang
Hi All, Could a gatekeeper please review it? Simply, the ret_mtype should be reset automatically, if it is void. This is already done for a number of other intrinsics. The bug is triggered when the combination of > and ?: operator is used, as the result type is not set by parent of the intrinsic

Re: [Open64-devel] code review for patch to fixed IA64 build error

2010-09-07 Thread Yiran Wang
It cannot work. Complex lowering would lower complex-types C8 to V16C8 or F8. There can be too solutions 1. C8 and V16C8 are complex types, while C8 is machine-independent-complex types, which is lowered by complex lowering (to modify complex lowering a bit.). 2. V16C8 are defined as machine-imp