* Makefile.in (OBJS): Add alias.o (alias.o): Add dependencies. * alias.c: New file. * sched.c: Remove alias analysis code. It lives in alias.c now. (reg_last_uses_size): Declare. (sched_analyze_2): Add new arguments to true_dependence. (sched_analyze_insn): Use reg_last_uses_size instead of max_reg. (schedule_block): Initialize reg_last_uses_size. (schedule_insns): Always call init_alias_analysis. * calls.c (expand_call): Note calls to malloc, calloc, and realloc; mark return value from such functions as a pointer and keep track of them for alias analysis. If a return value from a function is a pointer, mark it as such. * combine.c (distribute_notes): Handle REG_NOALIAS. * cse.c (struct write_data): Delete. No longer needed. (invalidate): Don't call set_nonvarying_address_components anymore. Use true_dependence to decide if an entry should be removed from the hash table. (invalidate_memory): Remove WRITES argument, simplify appropriately. Fix all callers. (note_mem_written): Similarly for WRITE_PTR argument. (invalidate_from_clobbers): Similarly for W argument. (invalidate_for_call): Remove memory elements from the hash table. (refers_to_mem_p, cse_rtx_addr_varies_p): Deleted. (cse_rtx_varies_p): New function. Derived from old cse_rtx_addr_varies_p. (cse_insn): Remove WRITES_MEMORY and INIT variables and all references. Don't call note_mem_written anymore. Stack pushes invalidate the stack pointer if PUSH_ROUNDING is defined. No longer need to call cse_rtx_addr_varies_p to decide if a MEM should be invalidated. (skipped_writes_memory): Remove variable. (invalidate_skipped_set): Simplify and wewrite to use invalidate_memory. (invalidate_skipped_block): Simplify for new alias analysis code. (cse_set_around_loop): Likewise. (cse_main): Call init_alias_analysis. * flags.h (flag_alias_check, flag_argument_noalias): Declare. * toplev.c (flag_alias_check, flag_argument_noalias): Define. (f_options): Add new alias checking arguments. (main): Set flag_alias_check when optimizing. * local_alloc (validate_equiv_mem_from_store): Add new arguments to true_dependence. (memref_referenced_p): Likewise. * loop.c (NUM_STORES): Increase to 30. (prescan_loop): Only non-constant calls set unknown_address_altered. (invariant_p): Add new arguments to true_dependence. (record_giv): Initialize unrolled and shared fields. (emit_iv_add_mult): Call record_base_value as needed. * loop.h (struct induction): Add unrolled and shared fields. * unroll.c (unroll_loop): Call record_base_value as needed. (copy_loop_body): Likewise. (final_biv_value): Likewise. (final_giv_value): Likewise. (find_splittable_regs): Likewise. Only create one new pseudo if we have multiple address GIVs that were combined with the same dst_reg GIV. Note when a new register is created due to unrolling. * rtl.c (reg_note_name): Add REG_NOALIAS. * rtl.h (enum reg_note): Similarly. (rtx_varies_p, may_trap_p, side_effects_p): Declare. (volatile_refs_p, volatile_insn_p, remove_note): Likewise. (note_stores, refers_to_regno_p, reg_overlap_mentioned_p): Likewise. (true_dependence, read_dependence, anti_dependence): Likewise. (output_dependence, init_alias_analysis, end_alias_analysis): Likewise. (mark_user_reg, mark_reg_pointer): Likewise. jfc's alias analysis code. From-SVN: r14768
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
config | Loading commit data... | |
cp | Loading commit data... | |
ginclude | Loading commit data... | |
intl | Loading commit data... | |
objc | Loading commit data... | |
.gdbinit | Loading commit data... | |
BUGS | Loading commit data... | |
COPYING | Loading commit data... | |
COPYING.LIB | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog.0 | Loading commit data... | |
ChangeLog.1 | Loading commit data... | |
ChangeLog.10 | Loading commit data... | |
ChangeLog.11 | Loading commit data... | |
ChangeLog.2 | Loading commit data... | |
ChangeLog.3 | Loading commit data... | |
ChangeLog.4 | Loading commit data... | |
ChangeLog.5 | Loading commit data... | |
ChangeLog.6 | Loading commit data... | |
ChangeLog.7 | Loading commit data... | |
ChangeLog.8 | Loading commit data... | |
ChangeLog.9 | Loading commit data... | |
INSTALL | Loading commit data... | |
Makefile.in | Loading commit data... | |
NEWS | Loading commit data... | |
ORDERS | Loading commit data... | |
PROBLEMS | Loading commit data... | |
PROJECTS | Loading commit data... | |
README | Loading commit data... | |
README-bugs | Loading commit data... | |
README-fixinc | Loading commit data... | |
README.ACORN | Loading commit data... | |
README.ALTOS | Loading commit data... | |
README.APOLLO | Loading commit data... | |
README.DWARF | Loading commit data... | |
README.FRESCO | Loading commit data... | |
README.NS32K | Loading commit data... | |
README.RS6000 | Loading commit data... | |
README.TRAD | Loading commit data... | |
README.X11 | Loading commit data... | |
SERVICE | Loading commit data... | |
TESTS.FLUNK | Loading commit data... | |
acconfig.h | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
alias.c | Loading commit data... | |
alloca.c | Loading commit data... | |
assert.h | Loading commit data... | |
basic-block.h | Loading commit data... | |
bc-emit.c | Loading commit data... | |
bc-emit.h | Loading commit data... | |
bc-optab.c | Loading commit data... | |
bc-optab.h | Loading commit data... | |
bc-typecd.def | Loading commit data... | |
bc-typecd.h | Loading commit data... | |
bi-arity.c | Loading commit data... | |
bi-defs.h | Loading commit data... | |
bi-lexer.c | Loading commit data... | |
bi-opcode.c | Loading commit data... | |
bi-opname.c | Loading commit data... | |
bi-parser.c | Loading commit data... | |
bi-parser.h | Loading commit data... | |
bi-parser.y | Loading commit data... | |
bi-reverse.c | Loading commit data... | |
bi-run.h | Loading commit data... | |
bitmap.c | Loading commit data... | |
bitmap.h | Loading commit data... | |
build-make | Loading commit data... | |
bytecode.def | Loading commit data... | |
bytecode.h | Loading commit data... | |
bytetypes.h | Loading commit data... | |
c-aux-info.c | Loading commit data... | |
c-common.c | Loading commit data... | |
c-convert.c | Loading commit data... | |
c-decl.c | Loading commit data... | |
c-gperf.h | Loading commit data... | |
c-iterate.c | Loading commit data... | |
c-lang.c | Loading commit data... | |
c-lex.c | Loading commit data... | |
c-lex.h | Loading commit data... | |
c-parse.c | Loading commit data... | |
c-parse.gperf | Loading commit data... | |
c-parse.h | Loading commit data... | |
c-parse.in | Loading commit data... | |
c-parse.y | Loading commit data... | |
c-pragma.c | Loading commit data... | |
c-pragma.h | Loading commit data... | |
c-tree.h | Loading commit data... | |
c-typeck.c | Loading commit data... | |
caller-save.c | Loading commit data... | |
calls.c | Loading commit data... | |
cccp.1 | Loading commit data... | |
cccp.c | Loading commit data... | |
cexp.c | Loading commit data... | |
cexp.y | Loading commit data... | |
choose-temp.c | Loading commit data... | |
collect2.c | Loading commit data... | |
combine.c | Loading commit data... | |
conditions.h | Loading commit data... | |
config.guess | Loading commit data... | |
config.in | Loading commit data... | |
config.sub | Loading commit data... | |
configure | Loading commit data... | |
configure.bat | Loading commit data... | |
configure.frag | Loading commit data... | |
configure.in | Loading commit data... | |
configure.lang | Loading commit data... | |
convert.c | Loading commit data... | |
convert.h | Loading commit data... | |
cplus-dem.c | Loading commit data... | |
cpp.1 | Loading commit data... | |
cpp.texi | Loading commit data... | |
cppalloc.c | Loading commit data... | |
cpperror.c | Loading commit data... | |
cppexp.c | Loading commit data... | |
cpphash.c | Loading commit data... | |
cpphash.h | Loading commit data... | |
cpplib.c | Loading commit data... | |
cpplib.h | Loading commit data... | |
cppmain.c | Loading commit data... | |
cross-make | Loading commit data... | |
crtstuff.c | Loading commit data... | |
cse.c | Loading commit data... | |
cstamp-h.in | Loading commit data... | |
dbxout.c | Loading commit data... | |
dbxstclass.h | Loading commit data... | |
defaults.h | Loading commit data... | |
demangle.h | Loading commit data... | |
doschk.c | Loading commit data... | |
dostage2 | Loading commit data... | |
dostage3 | Loading commit data... | |
dwarf.h | Loading commit data... | |
dwarf2.h | Loading commit data... | |
dwarf2out.c | Loading commit data... | |
dwarfout.c | Loading commit data... | |
emit-rtl.c | Loading commit data... | |
enquire.c | Loading commit data... | |
except.c | Loading commit data... | |
except.h | Loading commit data... | |
explow.c | Loading commit data... | |
expmed.c | Loading commit data... | |
expr.c | Loading commit data... | |
expr.h | Loading commit data... | |
extend.texi | Loading commit data... | |
final.c | Loading commit data... | |
fix-header.c | Loading commit data... | |
fixcpp | Loading commit data... | |
fixinc-nt.sed | Loading commit data... | |
fixinc.dgux | Loading commit data... | |
fixinc.irix | Loading commit data... | |
fixinc.ptx | Loading commit data... | |
fixinc.sco | Loading commit data... | |
fixinc.svr4 | Loading commit data... | |
fixinc.winnt | Loading commit data... | |
fixincludes | Loading commit data... | |
fixproto | Loading commit data... | |
flags.h | Loading commit data... | |
floatlib.c | Loading commit data... | |
flow.c | Loading commit data... | |
fold-const.c | Loading commit data... | |
fp-test.c | Loading commit data... | |
function.c | Loading commit data... | |
function.h | Loading commit data... | |
future.options | Loading commit data... | |
gansidecl.h | Loading commit data... | |
gbl-ctors.h | Loading commit data... | |
gcc.1 | Loading commit data... | |
gcc.c | Loading commit data... | |
gcc.hlp | Loading commit data... | |
gcc.texi | Loading commit data... | |
gcov-io.h | Loading commit data... | |
gcov.c | Loading commit data... | |
gcov.texi | Loading commit data... | |
gen-protos.c | Loading commit data... | |
genattr.c | Loading commit data... | |
genattrtab.c | Loading commit data... | |
gencodes.c | Loading commit data... | |
genconfig.c | Loading commit data... | |
genemit.c | Loading commit data... | |
genextract.c | Loading commit data... | |
genflags.c | Loading commit data... | |
genmultilib | Loading commit data... | |
genopinit.c | Loading commit data... | |
genoutput.c | Loading commit data... | |
genpeep.c | Loading commit data... | |
genrecog.c | Loading commit data... | |
getopt.c | Loading commit data... | |
getopt.h | Loading commit data... | |
getopt1.c | Loading commit data... | |
getpwd.c | Loading commit data... | |
glimits.h | Loading commit data... | |
global.c | Loading commit data... | |
gmon.c | Loading commit data... | |
gstab.h | Loading commit data... | |
gsyms.h | Loading commit data... | |
gsyslimits.h | Loading commit data... | |
halfpic.c | Loading commit data... | |
halfpic.h | Loading commit data... | |
hard-reg-set.h | Loading commit data... | |
input.h | Loading commit data... | |
install.sh | Loading commit data... | |
install.texi | Loading commit data... | |
install1.texi | Loading commit data... | |
integrate.c | Loading commit data... | |
integrate.h | Loading commit data... | |
invoke.texi | Loading commit data... | |
jump.c | Loading commit data... | |
just-fixinc | Loading commit data... | |
libgcc1-test.c | Loading commit data... | |
libgcc1.c | Loading commit data... | |
libgcc2.c | Loading commit data... | |
limitx.h | Loading commit data... | |
limity.h | Loading commit data... | |
listing | Loading commit data... | |
local-alloc.c | Loading commit data... | |
longlong.h | Loading commit data... | |
loop.c | Loading commit data... | |
loop.h | Loading commit data... | |
machmode.def | Loading commit data... | |
machmode.h | Loading commit data... | |
make-cc1.com | Loading commit data... | |
make-cccp.com | Loading commit data... | |
make-gcc.com | Loading commit data... | |
make-l2.com | Loading commit data... | |
md.texi | Loading commit data... | |
mips-tdump.c | Loading commit data... | |
mips-tfile.c | Loading commit data... | |
modemap.def | Loading commit data... | |
move-if-change | Loading commit data... | |
obstack.c | Loading commit data... | |
obstack.h | Loading commit data... | |
optabs.c | Loading commit data... | |
output.h | Loading commit data... | |
pcp.h | Loading commit data... | |
pexecute.c | Loading commit data... | |
print-rtl.c | Loading commit data... | |
print-tree.c | Loading commit data... | |
profile.c | Loading commit data... | |
protoize.c | Loading commit data... | |
pself.c | Loading commit data... | |
pself1.c | Loading commit data... | |
pself2.c | Loading commit data... | |
pself3.c | Loading commit data... | |
real.c | Loading commit data... | |
real.h | Loading commit data... | |
recog.c | Loading commit data... | |
recog.h | Loading commit data... | |
reg-stack.c | Loading commit data... | |
regclass.c | Loading commit data... | |
regs.h | Loading commit data... | |
reload.c | Loading commit data... | |
reload.h | Loading commit data... | |
reload1.c | Loading commit data... | |
reorg.c | Loading commit data... | |
rtl.c | Loading commit data... | |
rtl.def | Loading commit data... | |
rtl.h | Loading commit data... | |
rtl.texi | Loading commit data... | |
rtlanal.c | Loading commit data... | |
scan-decls.c | Loading commit data... | |
scan-types.sh | Loading commit data... | |
scan.c | Loading commit data... | |
scan.h | Loading commit data... | |
sched.c | Loading commit data... | |
sdbout.c | Loading commit data... | |
sort-protos | Loading commit data... | |
stab.def | Loading commit data... | |
stack.h | Loading commit data... | |
stmt.c | Loading commit data... | |
stor-layout.c | Loading commit data... | |
stupid.c | Loading commit data... | |
sys-protos.h | Loading commit data... | |
sys-types.h | Loading commit data... | |
texinfo.tex | Loading commit data... | |
tm.texi | Loading commit data... | |
toplev.c | Loading commit data... | |
tree.c | Loading commit data... | |
tree.def | Loading commit data... | |
tree.h | Loading commit data... | |
typeclass.h | Loading commit data... | |
unprotoize.c | Loading commit data... | |
unroll.c | Loading commit data... | |
varasm.c | Loading commit data... | |
version.c | Loading commit data... | |
vmsconfig.com | Loading commit data... | |
xcoffout.c | Loading commit data... | |
xcoffout.h | Loading commit data... |