Re: [Open64-devel] A question about volatile symbol and mu/chi

2014-02-18 Thread Fred Chow
A volatile variable cannot be involved in much optimization without affecting correctness. E.g. a CSE involving a volatile variable deletes a use, which is wrong. The defs and uses of a volatile variable must be preserved at their original places. Since SSA is for performing optimizations, i

[Open64-devel] A question about volatile symbol and mu/chi

2014-02-17 Thread Jian-Xin Lai
Hi, Basically, the volatile symbol shouldn't appear in the mu and chi. For example, in osprey/be/opt/opt_revise_ssa.cxx, we can find the following code: 933 // this loop for pre-existing variables 934 IDX_32_SET_ITER iter; 935 iter.Init(_symbols_to_revise); 936 for (i = iter.First_elem