top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Which dump file to check for Scalar Evolution Analysis details?

0 votes
178 views

I am working on GCC version 4.8.0. I want to check the scalar evolution analysis results of variables.
According to GCC manual, ‘scev’ option in ‘-fdump-tree-switch-options’ enables showing Scalar evolution analysis details.I tried to build using ‘-fdump-gtree-scev’ option which gave me below error.
“cc1: error: unrecognized command line option -fdump-tree-scev ”

When I build using ‘–fdump-tree-all’ option no dump file corresponding to ‘scev’ is found. (Manual
doesn’t say .scev dump file will be generated) I would like to know which dump file we have to look for checking the Scalar evolution analysis details. Do we get direct dump of scalar evolution results or we have to derive these results from any dump file (like from basic block details provided in .ssa dump file)?

posted Jun 28, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+2 votes
0 votes

I have created one hard disk image file ,which has installed linux kernel on it , and its filesystem also works fine . Now I want to install gcc on it by host's gcc from source .

At earlier time ,I consider to set configure option --prefix to image mounted location on host , like this: --prefix=/mnt/image , but this is found not work at later,due to gcc depend on several files on host .

So I want to get some suggestions from here.

0 votes

I was working in an Embedded processor with GCC-4.6.4 version. I need to add load/store reverse instructions to the MD file. My instructions will look as below:

 LWX Rd,Ra,Rb
 operation: Addr := Ra + Rb
 Rd := *Addr (loading data with the opposite endianness)
 SWX Rd,Ra,Rb
 operation: Addr := Ra + Rb
 *Addr := Rd (storing data with the opposite endianness)

To add the above instructions in to md file I tried below pattern in md file

 (define_insn "movsi_rev"
 [(set (match_operand:SI 0 "nonimmediate_operand" "=d,m")
 (bswap: SI (match_operand:SI 1 "move_src_operand" "m,d")))]
 ""
 "@
 lwxt%0,%1,%0
 swxt%0,%1,%0"
 [(set_attr "type" "load,store")
 (set_attr "mode" "SI")
 (set_attr "length" "4,4")])

I wrote a small testcase which is generating swx instruction but the operands are more due to which it is failing in assembler phase

 ex: instead of swx r0,r2,r0 it is generating swx r0,r2,0,r0

can anyone please help me in removing the extra operand in the above instruction.

+3 votes

I read some where that .i extension "C source code should not be pre processed". When it is required and what is the advantage of it.

...