[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-31 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #17 from Ian Lance Taylor --- Thanks.

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-31 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-31 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #15 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:b75f996e846d079251f3a6134617f0405c3ed535 commit r12-7932-gb75f996e846d079251f3a6134617f0405c3ed535 Author: Richard Biener Date:

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-31 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #14 from Jiu Fu Guo --- (In reply to Richard Biener from comment #13) ... > Does the following fix the runtime error? The RTL after DSE seems to be OK. > > diff --git a/gcc/gimple-expr.cc b/gcc/gimple-expr.cc > index

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-30 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-30 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #12 from Jiu Fu Guo --- In dse.cc, "may_be_aliased" affects "can_escape" and then affects "kill_on_calls".

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-30 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #11 from Jiu Fu Guo --- Find one difference between trunk and r12-656: On trunk: tree expr = MEM_EXPR (mem); where mem is (mem/f/c:DI (plus:DI (reg/f:DI 110 sfp) (const_int 32 [0x20])) [3 GOTMP.2[0].x.__values+0 S8

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-30 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #10 from Jiu Fu Guo --- Created attachment 52718 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52718=edit m.go sub1.go Based on Ian's code, the below code also reproduce this issue. package sub1 func TestBits(callback

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-30 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #9 from Jiu Fu Guo --- (In reply to Ian Lance Taylor from comment #8) ... > > package main > > func main() { > for _, test := range []struct { > x, y, want []int > }{ > {[]int{}, []int{},

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-29 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 Ian Lance Taylor changed: What|Removed |Added CC||ian at airs dot com --- Comment #8

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-29 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #7 from Jiu Fu Guo --- tried to remove 'fmt' from the narrowed code, but it is still in code :)

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-29 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #6 from Jiu Fu Guo --- ---bits_test.go package big import ( "fmt" "testing" ) type Bits []int func TestMulBits(t *testing.T) { for _, test := range []struct { x, y, want Bits }{

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-29 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #5 from Jiu Fu Guo --- Created attachment 52709 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52709=edit 280r.dse1

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-29 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #4 from Jiu Fu Guo --- Created attachment 52708 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52708=edit 279r.cse2

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 Richard Biener changed: What|Removed |Added Keywords||wrong-code Target|

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-28 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #2 from Jiu Fu Guo --- starting to process insn 14 v: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,

[Bug rtl-optimization/105091] RTL dse1 remove stack mem storing incorrectly

2022-03-28 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105091 --- Comment #1 from Jiu Fu Guo --- Checking the dumps from dse1, some "stack memory store" are deleted incorrectly. 12: %3:DI=call [`runtime.newobject'] argc:0 REG_CALL_DECL `runtime.newobject' 13: r117:DI=%3:DI REG_DEAD