ChangeLog.graphite 327 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129
  1. 2011-05-26 Alexey Kravets <kayrick@ispras.ru>
  2. PR middle-end/49147
  3. * graphite-opencl-codegen.c
  4. (opencl_get_perfect_nested_loop_depth): Use
  5. enabled_dependency_in_clast_loop_p instead of
  6. dependency_in_clast_loop_p.
  7. * graphite-opencl.c (opencl_transform_stmt_list): Ditto.
  8. (enabled_dependency_in_clast_loop_p): New.
  9. * graphite-opencl.h (enabled_dependency_in_clast_loop_p): Export.
  10. * gcc.dg/graphite/pr49147.c: New test.
  11. 2011-05-24 Sebastian Pop <sebastian.pop@amd.com>
  12. * graphite-opencl-codegen.c (opencl_print_local_vars): Fix typo.
  13. 2011-05-24 Sebastian Pop <sebastian.pop@amd.com>
  14. * graphite-dependences.c (graphite_outer_subscript_bound): Remove
  15. memory leaks, add one more assert.
  16. 2011-05-24 Sebastian Pop <sebastian.pop@amd.com>
  17. * graphite-dependences.c (build_alias_set_powerset): Remove
  18. continue from loop, add one more assert.
  19. 2011-05-24 Sebastian Pop <sebastian.pop@amd.com>
  20. * graphite-dependences.c (graphite_outer_subscript_bound): Remove
  21. unused parameter.
  22. * graphite-dependences.h (graphite_outer_subscript_bound): Same.
  23. * graphite-opencl-meta-clast.c (opencl_set_meta_rw_flags): Update
  24. call to graphite_outer_subscript_bound.
  25. * graphite-opencl.c (opencl_get_indirect_size): Same.
  26. 2011-05-24 Alexey Kravets <kayrick@ispras.ru>
  27. * graphite-opencl.c (opencl_private_var_name_p): Removed.
  28. (graphite_artificial_array_p): Removed.
  29. (opencl_data_create): Use zero_dim_array_p instead of
  30. graphite_artificial_array_p.
  31. 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
  32. * graphite-opencl.c (opencl_create_function_call): Use cl_khr_fp64
  33. pragma extension only when it is defined. Use cl_amd_fp64 when it
  34. is defined.
  35. 2011-01-23 Tobias Grosser <grosser@fim.uni-passau.de>
  36. * doc/install.texi: Replace '/' by an or and give the exact
  37. version number of cloog-0.16.1
  38. 2011-01-20 Sebastian Pop <sebastian.pop@amd.com>
  39. * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
  40. (close_phi_written_to_memory): Call for_each_index with
  41. dr_indices_valid_in_loop.
  42. * gfortran.dg/graphite/id-24.f: New.
  43. * gfortran.dg/graphite/id-25.f: New.
  44. 2011-01-19 Sebastian Pop <sebastian.pop@amd.com>
  45. * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
  46. when it is initialized.
  47. * gfortran.dg/graphite/id-23.f: New.
  48. 2011-01-19 Sebastian Pop <sebastian.pop@amd.com>
  49. * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
  50. call to graphite_find_data_references_in_stmt.
  51. * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
  52. (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
  53. call to graphite_find_data_references_in_stmt.
  54. (analyze_drs_in_stmts): Same.
  55. * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
  56. in which the scalar analysis of indices is performed.
  57. (create_data_ref): Same. Update call to dr_analyze_indices.
  58. (find_data_references_in_stmt): Update call to create_data_ref.
  59. (graphite_find_data_references_in_stmt): Same.
  60. * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
  61. declaration.
  62. (create_data_ref): Same.
  63. * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
  64. call to create_data_ref.
  65. 2011-01-19 Sebastian Pop <sebastian.pop@amd.com>
  66. * graphite-sese-to-poly.c (build_poly_scop): Move
  67. rewrite_commutative_reductions_out_of_ssa before
  68. find_scop_parameters.
  69. 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
  70. PR tree-optimization/46970
  71. * gcc.dg/graphite/pr46970.c: New.
  72. 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
  73. PR tree-optimization/46215
  74. * gcc.dg/graphite/pr46215.c: New.
  75. 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
  76. PR tree-optimization/46168
  77. * gcc.dg/graphite/pr46168.c: New.
  78. 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
  79. PR tree-optimization/43657
  80. * gcc.dg/graphite/pr43657.c: New.
  81. 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
  82. PR tree-optimization/29832
  83. * gfortran.dg/graphite/pr29832.f90: New.
  84. 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
  85. PR tree-optimization/43567
  86. * gcc.dg/graphite/pr43567.c: New.
  87. 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
  88. PR tree-optimization/43567
  89. * gcc.dg/graphite/pr43567.c: New.
  90. 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
  91. * Makefile.in (LAMBDA_H): Removed.
  92. (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
  93. (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
  94. lambda-trans.o, and tree-loop-linear.o.
  95. (lto-symtab.o): Remove dependence on LAMBDA_H.
  96. (tree-loop-linear.o): Remove rule.
  97. (lambda-mat.o): Same.
  98. (lambda-trans.o): Same.
  99. (lambda-code.o): Same.
  100. (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
  101. (tree-vect-slp.o): Same.
  102. * hwint.h (gcd): Moved here.
  103. (least_common_multiple): Same.
  104. * lambda-code.c: Removed.
  105. * lambda-mat.c: Removed.
  106. * lambda-trans.c: Removed.
  107. * lambda.h: Removed.
  108. * tree-loop-linear.c: Removed.
  109. * lto-symtab.c: Do not include lambda.h.
  110. * omega.c (gcd): Removed.
  111. * passes.c (init_optimization_passes): Remove pass_linear_transform.
  112. * tree-data-ref.c (print_lambda_vector): Moved here.
  113. (lambda_vector_copy): Same.
  114. (lambda_matrix_copy): Same.
  115. (lambda_matrix_id): Same.
  116. (lambda_vector_first_nz): Same.
  117. (lambda_matrix_row_add): Same.
  118. (lambda_matrix_row_exchange): Same.
  119. (lambda_vector_mult_const): Same.
  120. (lambda_vector_negate): Same.
  121. (lambda_matrix_row_negate): Same.
  122. (lambda_vector_equal): Same.
  123. (lambda_matrix_right_hermite): Same.
  124. * tree-data-ref.h: Do not include lambda.h.
  125. (lambda_vector): Moved here.
  126. (lambda_matrix): Same.
  127. (dependence_level): Same.
  128. (lambda_transform_legal_p): Removed declaration.
  129. (lambda_collect_parameters): Same.
  130. (lambda_compute_access_matrices): Same.
  131. (lambda_vector_gcd): Same.
  132. (lambda_vector_new): Same.
  133. (lambda_vector_clear): Same.
  134. (lambda_vector_lexico_pos): Same.
  135. (lambda_vector_zerop): Same.
  136. (lambda_matrix_new): Same.
  137. * tree-flow.h (least_common_multiple): Removed declaration.
  138. * tree-parloops.c (lambda_trans_matrix): Moved here.
  139. (LTM_MATRIX): Same.
  140. (LTM_ROWSIZE): Same.
  141. (LTM_COLSIZE): Same.
  142. (LTM_DENOMINATOR): Same.
  143. (lambda_trans_matrix_new): Same.
  144. (lambda_matrix_vector_mult): Same.
  145. (lambda_transform_legal_p): Same.
  146. * tree-pass.h (pass_linear_transform): Removed declaration.
  147. * tree-ssa-loop.c (tree_linear_transform): Removed.
  148. (gate_tree_linear_transform): Removed.
  149. (pass_linear_transform): Removed.
  150. (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
  151. flag_loop_interchange.
  152. * gfortran.dg/graphite/interchange-4.f: New.
  153. * gfortran.dg/graphite/interchange-5.f: New.
  154. * gcc.dg/tree-ssa/ltrans-1.c: Removed.
  155. * gcc.dg/tree-ssa/ltrans-2.c: Removed.
  156. * gcc.dg/tree-ssa/ltrans-3.c: Removed.
  157. * gcc.dg/tree-ssa/ltrans-4.c: Removed.
  158. * gcc.dg/tree-ssa/ltrans-5.c: Removed.
  159. * gcc.dg/tree-ssa/ltrans-6.c: Removed.
  160. * gcc.dg/tree-ssa/ltrans-8.c: Removed.
  161. * gfortran.dg/ltrans-7.f90: Removed.
  162. * gcc.dg/tree-ssa/data-dep-1.c: Removed.
  163. * gcc.dg/pr18792.c: -> gcc.dg/graphite/pr18792.c
  164. * gcc.dg/pr19910.c: -> gcc.dg/graphite/pr19910.c
  165. * gcc.dg/tree-ssa/20041110-1.c: -> gcc.dg/graphite/pr20041110-1.c
  166. * gcc.dg/tree-ssa/pr20256.c: -> gcc.dg/graphite/pr20256.c
  167. * gcc.dg/pr23625.c: -> gcc.dg/graphite/pr23625.c
  168. * gcc.dg/tree-ssa/pr23820.c: -> gcc.dg/graphite/pr23820.c
  169. * gcc.dg/tree-ssa/pr24309.c: -> gcc.dg/graphite/pr24309.c
  170. * gcc.dg/tree-ssa/pr26435.c: -> gcc.dg/graphite/pr26435.c
  171. * gcc.dg/pr29330.c: -> gcc.dg/graphite/pr29330.c
  172. * gcc.dg/pr29581-1.c: -> gcc.dg/graphite/pr29581-1.c
  173. * gcc.dg/pr29581-2.c: -> gcc.dg/graphite/pr29581-2.c
  174. * gcc.dg/pr29581-3.c: -> gcc.dg/graphite/pr29581-3.c
  175. * gcc.dg/pr29581-4.c: -> gcc.dg/graphite/pr29581-4.c
  176. * gcc.dg/tree-ssa/loop-27.c: -> gcc.dg/graphite/pr30565.c
  177. * gcc.dg/tree-ssa/pr31183.c: -> gcc.dg/graphite/pr31183.c
  178. * gcc.dg/tree-ssa/pr33576.c: -> gcc.dg/graphite/pr33576.c
  179. * gcc.dg/tree-ssa/pr33766.c: -> gcc.dg/graphite/pr33766.c
  180. * gcc.dg/pr34016.c: -> gcc.dg/graphite/pr34016.c
  181. * gcc.dg/tree-ssa/pr34017.c: -> gcc.dg/graphite/pr34017.c
  182. * gcc.dg/tree-ssa/pr34123.c: -> gcc.dg/graphite/pr34123.c
  183. * gcc.dg/tree-ssa/pr36287.c: -> gcc.dg/graphite/pr36287.c
  184. * gcc.dg/tree-ssa/pr37686.c: -> gcc.dg/graphite/pr37686.c
  185. * gcc.dg/pr42917.c: -> gcc.dg/graphite/pr42917.c
  186. * gcc.dg/tree-ssa/data-dep-1.c
  187. * gfortran.dg/loop_nest_1.f90: -> gfortran.dg/graphite/pr29290.f90
  188. * gfortran.dg/pr29581.f90: -> gfortran.dg/graphite/pr29581.f90
  189. * gfortran.dg/pr36286.f90: -> gfortran.dg/graphite/pr36286.f90
  190. * gfortran.dg/pr36922.f: -> gfortran.dg/graphite/pr36922.f
  191. * gfortran.dg/pr39516.f: -> gfortran.dg/graphite/pr39516.f
  192. 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
  193. * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
  194. VAR_DECL, PARM_DECL, and RESULT_DECL.
  195. * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
  196. 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
  197. * graphite-dependences.c (reduction_dr_1): Allow several reductions
  198. in a reduction PBB.
  199. * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
  200. that have already been marked as PBB_IS_REDUCTION.
  201. 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
  202. * graphite-scop-detection.c (same_close_phi_node): New.
  203. (remove_duplicate_close_phi): New.
  204. (make_close_phi_nodes_unique): New.
  205. (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
  206. 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
  207. * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
  208. * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
  209. of both data references to be the same.
  210. 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
  211. * graphite-dependences.c (build_lexicographical_constraint): Remove the
  212. gdim parameter.
  213. (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
  214. (dependence_polyhedron): Same.
  215. (graphite_legal_transform_dr): Same.
  216. (graphite_carried_dependence_level_k): Same.
  217. * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
  218. * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
  219. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  220. * graphite-sese-to-poly.c
  221. (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
  222. (close_phi_written_to_memory): New.
  223. (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
  224. and unshare_expr.
  225. * gcc.dg/graphite/block-0.c: Un-XFAILed.
  226. * gcc.dg/graphite/block-1.c: Un-XFAILed.
  227. * gcc.dg/graphite/block-7.c: Un-XFAILed.
  228. * gcc.dg/graphite/block-8.c: Un-XFAILed.
  229. * gcc.dg/graphite/interchange-12.c: Un-XFAILed.
  230. * gcc.dg/graphite/interchange-14.c: Un-XFAILed.
  231. * gcc.dg/graphite/interchange-15.c: Un-XFAILed.
  232. * gcc.dg/graphite/interchange-8.c: Un-XFAILed.
  233. * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
  234. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  235. * doc/install.texi: Update the expected version number of PPL to 0.11.
  236. * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
  237. #if PPL_VERSION_MINOR < 11.
  238. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  239. * graphite-dependences.c (new_poly_ddr): Inlined into
  240. dependence_polyhedron.
  241. (free_poly_ddr): Moved close by new_poly_ddr.
  242. (dependence_polyhedron_1): Renamed dependence_polyhedron.
  243. Early return NULL when ppl_powerset_is_empty returns true.
  244. (dependence_polyhedron): Renamed new_poly_ddr. Call only once
  245. poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
  246. (graphite_legal_transform_dr): Call new_poly_ddr.
  247. (graphite_carried_dependence_level_k): Same.
  248. (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
  249. (dot_transformed_deps_stmt_1): Removed.
  250. (dot_deps_stmt_1): Call dot_deps_stmt_2.
  251. (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
  252. (dot_deps_1): Call dot_deps_2.
  253. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  254. * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
  255. (build_lexicographical_constraint): Same.
  256. (dependence_polyhedron_1): Same.
  257. (graphite_legal_transform_dr): Same.
  258. (graphite_carried_dependence_level_k): Same.
  259. * graphite-ppl.c (ppl_powerset_is_empty): New.
  260. * graphite-ppl.h (ppl_powerset_is_empty): Declared.
  261. * tree-data-ref.c (dump_data_reference): Print the basic block index.
  262. * gcc.dg/graphite/block-0.c: Add documentation.
  263. * gcc.dg/graphite/block-4.c: Same.
  264. * gcc.dg/graphite/block-7.c: Same.
  265. * gcc.dg/graphite/block-8.c: New.
  266. * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
  267. * gcc.dg/graphite/interchange-11.c: Un-XFAILed.
  268. * gcc.dg/graphite/interchange-12.c: Add documentation.
  269. * gcc.dg/graphite/interchange-13.c: New.
  270. * gcc.dg/graphite/interchange-14.c: New.
  271. * gcc.dg/graphite/interchange-15.c: New.
  272. * gcc.dg/graphite/interchange-8.c: Add documentation.
  273. * gcc.dg/graphite/interchange-mvt.c: Same.
  274. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  275. * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
  276. the "a followed by b" relation and document it.
  277. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  278. * graphite-dependences.c (build_lexicographical_constraint): Stop the
  279. iteration when the bag of constraints is empty.
  280. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  281. * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
  282. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  283. * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
  284. nest and two loop depths as parameters.
  285. (lst_try_interchange_loops): Call lst_interchange_profitable_p after
  286. lst_perfect_nestify.
  287. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  288. * graphite-dependences.c (print_pddr): Call
  289. ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
  290. 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
  291. * graphite-ppl.c (debug_gmp_value): New.
  292. * graphite-ppl.h (debug_gmp_value): Declared.
  293. 2011-01-13 Tobias Grosser <grosser@fim.uni-passau.de>
  294. * doc/install.texi: Document availability of cloog-0.16
  295. 2011-01-05 Vladimir Kargov <kargov@gmail.com>
  296. * graphite-scop-detection.c (is_valid_stmt_p): Pass the entry basic
  297. block instead of region start to the instantiation.
  298. (is_valid_bb_p): Add support for basic blocks with conditional
  299. statements.
  300. (find_scops_new): Recalculate dominance info before SCOP
  301. detection.
  302. 2011-01-05 Vladimir Kargov <kargov@gmail.com>
  303. * graphite-scop-detection.c (get_outermost_loop_in_region): New.
  304. (is_valid_loop_p): Correct loop passed to stmt_has_simple_data_refs_p
  305. 2011-01-05 Vladimir Kargov <kargov@gmail.com>
  306. * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
  307. invalid postdominance info
  308. 2010-12-29 Sebastian Pop <sebastian.pop@amd.com>
  309. * Makefile.in (graphite-opencl-codegen.o): Update dependences.
  310. (graphite-opencl-meta-clast.o): Same.
  311. (graphite-opencl.o): Same.
  312. (refined-regions.o): Same.
  313. * graphite-opencl-codegen.c: Do not include unnecessary .h files.
  314. * graphite-opencl-meta-clast.c: Same.
  315. * graphite-opencl.c: Same.
  316. * refined-regions.c: Same.
  317. 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
  318. * graphite-opencl-codegen.c: Use FOR_EACH_VEC_ELT.
  319. * graphite-opencl-meta-clast.c: Same.
  320. * graphite-opencl.c: Same.
  321. 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
  322. * graphite-opencl-codegen.c: Do not include sys/time.h.
  323. * graphite-opencl.c: Same.
  324. 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
  325. * graphite-opencl.c (h_context, h_cmd_queue, h_program): Moved
  326. out of ifdef HAVE_cloog section.
  327. 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
  328. * Makefile.in (graphite-opencl.o): Depends on
  329. graphite-opencl-functions.def.
  330. * graphite-opencl-functions.def: New.
  331. * graphite-opencl.c (enum OPENCL_FUNCTIONS): Read data from
  332. graphite-opencl-functions.def.
  333. (opencl_function_names): Same.
  334. (opencl_create_function_decl): Use the enum OPENCL_FUNCTIONS
  335. as indices of opencl_function_names.
  336. 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
  337. * graphite-opencl-codegen.c: Fix formatting.
  338. * graphite-opencl-meta-clast.c: Same.
  339. * graphite-opencl.c: Same.
  340. 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
  341. * graphite-opencl-codegen.c: Fix formating problems.
  342. * graphite-opencl-meta-clast.c: Same.
  343. * graphite-opencl.c: Same.
  344. * graphite-opencl.h: Same.
  345. 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
  346. * graphite-opencl-codegen.c: Sort topologically static functions.
  347. * graphite-opencl.c: Same.
  348. 2010-12-25 Sebastian Pop <sebastian.pop@amd.com>
  349. * graphite-cloog-compat.h (cloog_names_nb_scattering): New.
  350. (cloog_names_scattering): New.
  351. * graphite-opencl-codegen.c (opencl_constant_expression_p): Use
  352. clast_expr_* instead of expr_*. Call clast_name_to_str.
  353. (opencl_clast_name_to_tree): Now takes a clast_name_p in parameter.
  354. (opencl_get_scat_real_name): Same. Call clast_name_to_str.
  355. (opencl_add_scat_as_arg): Same.
  356. (opencl_print_local_vars): Call cloog_names_scattering and
  357. cloog_names_nb_scattering.
  358. (opencl_print_for): Do not call value_*.
  359. (opencl_print_term): Same.
  360. (opencl_print_expr): Use clast_expr_* instead of expr_*.
  361. (opencl_print_sum): Same.
  362. (opencl_print_binary): Same.
  363. 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
  364. * Makefile.in (OBJS-common): Add graphite-opencl-codegen.o,
  365. graphite-opencl-meta-clast.o and graphite-opencl.o.
  366. (graphite-opencl-codegen.o): New.
  367. (graphite-opencl-meta-clast.o): New.
  368. (graphite-opencl.o): New.
  369. (GTFILES): Add graphite-opencl.c.
  370. * common.opt (fgraphite-opencl): New.
  371. (fgraphite-opencl-cpu): New.
  372. (fgraphite-opencl-ignore-depth-heuristic): New.
  373. (fgraphite-opencl-ignore-mem-heuristic): New.
  374. (fgraphite-opencl-ignore-dep): New.
  375. (fgraphite-opencl-ignore-types): New.
  376. (fgraphite-opencl-depth-base): New.
  377. (fgraphite-opencl-debug): New.
  378. * graphite-opencl-codegen.c: New file.
  379. * graphite-opencl-meta-clast.c: New file.
  380. * graphite-opencl.c: New file.
  381. * graphite-opencl.h: New file.
  382. * graphite.c (graphite_transform_loops): Call graphite_opencl_init and
  383. graphite_opencl_finalize.
  384. * tree-ssa-loop.c (gate_graphite_transforms): Handle
  385. flag_graphite_opencl.
  386. * graphite-clast-to-gimple.c (gloog): Call opencl_transform_clast.
  387. * dbgcnt.def (opencl_scop_cnt): New counter.
  388. 2010-12-25 Alexander Monakov <amonakov@ispras.ru>
  389. * graphite-dependences.c (graphite_outer_subscript_bound): New.
  390. (graphite_carried_dependence_level_k): Export.
  391. * graphite-dependences.h (graphite_outer_subscript_bound): Declare.
  392. (graphite_carried_dependence_level_k): Ditto.
  393. 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
  394. * graphite-clast-to-gimple.c (struct clast_name_index): Move
  395. definition to graphite-clast-to-gimple.h.
  396. (clast_name_to_index): Ditto.
  397. (clast_name_index_elt_info): Ditto.
  398. (eq_clast_name_indexes): Ditto.
  399. (save_clast_name_index): Export.
  400. (clast_name_to_gcc): Ditto.
  401. (clast_to_gcc_expression): Ditto.
  402. (gcc_type_for_clast_expr): Ditto.
  403. (graphite_create_new_guard): Ditto.
  404. (gcc_type_for_iv_of_clast_loop): Ditto.
  405. (graphite_create_new_loop): Ditto.
  406. (build_iv_mapping): Ditto.
  407. (graphite_create_new_loop_guard): Ditto.
  408. (debug_clast_name_index): New.
  409. (debug_clast_name_indices): New debug function.
  410. 2010-12-21 Sebastian Pop <sebastian.pop@amd.com>
  411. PR tree-optimization/47021
  412. * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
  413. 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
  414. * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
  415. unused warning.
  416. (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
  417. 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
  418. * graphite-sese-to-poly.c (analyze_drs): Removed.
  419. (build_scop_drs): Do not call analyze_drs.
  420. (analyze_drs_in_stmts): New.
  421. (insert_stmts): New.
  422. (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
  423. (insert_out_of_ssa_copy_on_edge): Same.
  424. (rewrite_close_phi_out_of_ssa): Call insert_stmts.
  425. (rewrite_phi_out_of_ssa): Same.
  426. (rewrite_cross_bb_scalar_dependence): Same.
  427. (split_reduction_stmt): Move data references in the new basic blocks.
  428. (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
  429. 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
  430. * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
  431. 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
  432. PR middle-end/45297
  433. * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
  434. the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
  435. * graphite-poly.h (new_poly_bb): Update declaration.
  436. (gbb_from_bb): Moved here...
  437. (pbb_from_bb): New.
  438. * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
  439. Removed.
  440. (graphite_stmt_p): Removed.
  441. (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
  442. sbitmap reductions. Always build a gimple_bb_p. Do not call
  443. new_poly_bb.
  444. (build_scop_bbs_1): Do not pass in sbitmap reductions.
  445. (build_scop_bbs): Same.
  446. (gbb_from_bb): ... from here.
  447. (add_conditions_to_constraints): Moved up.
  448. (analyze_drs): New.
  449. (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
  450. not contain data references.
  451. (new_pbb_from_pbb): New.
  452. (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
  453. block is split.
  454. (rewrite_close_phi_out_of_ssa): Update call to
  455. insert_out_of_ssa_copy_on_edge.
  456. (rewrite_reductions_out_of_ssa): Now static.
  457. (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
  458. (split_pbb): New.
  459. (split_reduction_stmt): Call split_pbb.
  460. (translate_scalar_reduction_to_array): Pass in the scop, do not
  461. pass in the sbitmap reductions.
  462. (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
  463. (rewrite_commutative_reductions_out_of_ssa_loop): Same.
  464. (rewrite_commutative_reductions_out_of_ssa): Same.
  465. (build_poly_scop): Call build_scop_bbs,
  466. rewrite_commutative_reductions_out_of_ssa,
  467. rewrite_reductions_out_of_ssa, and
  468. rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
  469. before scop_to_lst.
  470. * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
  471. Removed declaration.
  472. (rewrite_reductions_out_of_ssa): Same.
  473. (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
  474. (build_scop_bbs): Same.
  475. * graphite.c (graphite_transform_loops): Do not initialize reductions.
  476. Do not call build_scop_bbs,
  477. rewrite_commutative_reductions_out_of_ssa,
  478. rewrite_reductions_out_of_ssa, and
  479. rewrite_cross_bb_scalar_deps_out_of_ssa.
  480. * sese.h (struct gimple_bb): Add field pbb.
  481. (GBB_PBB): New.
  482. * gcc.dg/graphite/pr45297.c: New.
  483. 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
  484. * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
  485. New.
  486. (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
  487. handle_scalar_deps_crossing_scop_limits.
  488. (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
  489. after the scop. Update call to rewrite_cross_bb_scalar_deps.
  490. 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
  491. * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
  492. when replacing a constant in an ADDR_EXPR.
  493. 2010-10-20 Sebastian Pop <sebastian.pop@amd.com>
  494. * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
  495. for the stride.
  496. (lst_do_strip_mine): Same.
  497. (scop_do_strip_mine): Same.
  498. * graphite-poly.c (apply_poly_transforms): Update call to
  499. scop_do_strip_mine.
  500. * graphite-poly.h (scop_do_strip_mine): Update declaration.
  501. 2010-09-24 Sebastian Pop <sebastian.pop@amd.com>
  502. PR middle-end/45758
  503. * graphite.c (graphite_initialize): Call scev_reset.
  504. 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
  505. * sese.h (scev_analyzable_p): Return false for real or floating
  506. point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
  507. 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
  508. PR middle-end/45758
  509. * gfortran.dg/graphite/pr45758.f90: New.
  510. 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
  511. * graphite-scop-detection.c (is_scop_p): Free bblist.
  512. 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
  513. * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
  514. and ps.
  515. * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
  516. domain.
  517. * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
  518. Do not allocate ub_expr, it is passed in initialized.
  519. 2010-09-21 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  520. * common.opt (fgraphite-dump-cloog): New flag.
  521. * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
  522. * graphite-clast-to-gimple.c (init_cloog_input_file): New.
  523. (build_cloog_prog): Dump CLooG input file when
  524. flag_graphite_dump_cloog is set.
  525. * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
  526. 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
  527. Revert previous patch "New flag: -fgraphite-dump-cloog."
  528. 2010-09-20 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  529. * common.opt (fgraphite-dump-cloog): New flag.
  530. * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
  531. * graphite-clast-to-gimple.c (init_cloog_input_file): New.
  532. (build_cloog_prog): Dump CLooG input file when
  533. flag_graphite_dump_cloog is set.
  534. 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
  535. * graphite-clast-to-gimple.c (graphite_verify): Remove call to
  536. verify_dominators for CDI_POST_DOMINATORS.
  537. * sese.h: Remove comment about CDI_POST_DOMINATORS.
  538. (recompute_all_dominators): Remove call to free_dominance_info
  539. for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
  540. for CDI_POST_DOMINATORS.
  541. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  542. * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
  543. over pbb_dim_iter_domain.
  544. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  545. * graphite-flattening.c: Fix comments.
  546. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  547. * Makefile.in (OBJS-common): Add graphite-flattening.o.
  548. (graphite-flattening.o): New rule.
  549. * common.opt (floop-flatten): New flag.
  550. * doc/invoke.texi (-floop-flatten): Documented.
  551. * graphite-flattening.c: New.
  552. * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
  553. * graphite-poly.h (flatten_all_loops): Declared.
  554. (lst_remove_loop_and_inline_stmts_in_loop_father): New.
  555. * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
  556. is set, also set flag_graphite.
  557. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  558. * graphite-poly.c (cloog_checksum): New.
  559. * graphite-poly.h (cloog_checksum): Declared.
  560. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  561. * graphite-poly.c (pbb_number_of_iterations): Removed.
  562. (pbb_number_of_iterations_at_time): Correctly compute the number
  563. of iterations in the transformed loop.
  564. * graphite-poly.h (pbb_number_of_iterations): Removed.
  565. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  566. * graphite-poly.h (lst_update_scattering_seq): Removed.
  567. (lst_update_scattering): Correctly handle outermost loop dewey
  568. renumbering.
  569. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  570. * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
  571. lst_strip_mine_profitable_p. Call lst_niter_for_loop.
  572. * graphite-poly.h (lst_niter_for_loop): New.
  573. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  574. * graphite-poly.c (apply_poly_transforms): Do not abort when the
  575. transform read from disk is not legal. Call fatal_error instead.
  576. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  577. * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
  578. (print_scop_header): Removed. Inlined in the only call place...
  579. (print_scop): ... here.
  580. 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
  581. * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
  582. 2010-09-02 Vladimir Kargov <kargov@gmail.com>
  583. * graphite-scop-detection.c (is_valid_expr_p, is_valid_loop_p): New.
  584. (is_valid_stmt_p): Add data reference and operation-specific checks.
  585. (is_valid_bb_p): Change structure, add loop validity check.
  586. (is_scop_p): Move the TODO list
  587. (find_scops_new): New.
  588. (build_scops_new): Move part of functionality to find_scops_new and
  589. build_scops. Add necessary steps for successful SCoP construction.
  590. (build_scops): Compute SCoP sets for both detection algorithms, choose
  591. the resulting one depending on static condition.
  592. 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
  593. * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
  594. 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
  595. * graphite-dependences.c (dot_deps): Avoid set but not used warning.
  596. (dot_deps_stmt): Same.
  597. * graphite-poly.c (dot_lst): Same.
  598. 2010-08-23 Sebastian Pop <sebastian.pop@amd.com>
  599. * graphite-blocking.c (scop_do_strip_mine): Do not call
  600. graphite_legal_transform.
  601. (scop_do_block): Same.
  602. 2010-08-20 Vladimir Kargov <kargov@gmail.com>
  603. * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
  604. description.
  605. 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
  606. PR middle-end/45230
  607. * gcc.dg/graphite/id-pr45230.c: New.
  608. 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
  609. * tree-scalar-evolution.c (instantiate_array_ref): New.
  610. (instantiate_scev_r): Also handle ARRAY_REFs.
  611. 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
  612. * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
  613. Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
  614. RESULT_DECL, and FIELD_DECL. Return false for an
  615. SSA_NAME_IS_DEFAULT_DEF.
  616. (compute_scalar_evolution_in_loop): Do not further analyze the
  617. scalar evolution when no_evolution_in_loop_p returns true.
  618. 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
  619. * tree-chrec.h (evolution_function_is_affine_p): Do not check
  620. whether CHREC_LEFT is invariant. A function is affine when
  621. CHREC_RIGHT is invariant.
  622. 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
  623. * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
  624. is_gimple_reg.
  625. (rewrite_degenerate_phi): Same.
  626. (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
  627. 2010-08-18 Vladimir Kargov <kargov@gmail.com>
  628. * graphite-scop-detection.c (graphite_can_represent_scev,
  629. graphite_can_represent_expr, stmt_has_simple_data_refs_p,
  630. graphite_can_represent_loop): Remove outermost_loop.
  631. 2010-08-17 Sebastian Pop <sebastian.pop@amd.com>
  632. PR middle-end/45229
  633. * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
  634. handle GIMPLE_CALLs with no LHS.
  635. 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
  636. Sebastian Pop <sebastian.pop@amd.com>
  637. * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write.
  638. Call remove-build-file to clean up the generated *.graphite files.
  639. 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
  640. * doc/invoke.texi (debugging options): Update documentation.
  641. (-floop-interchange): Same.
  642. (-flopp-strip-mine): Same.
  643. (-floop-block): Same.
  644. (-fgraphite-read): Add documentation.
  645. (-fgraphite-write): Same.
  646. 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
  647. * toplev.c (process_options): Disable graphite loop optimization
  648. options when -fgraphite-read flag is used.
  649. 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
  650. * graphite-poly.c (init_graphite_out_file): New.
  651. (init_graphite_in_file): New.
  652. (apply_poly_transforms): Updated to enable reading and writing of
  653. multiple scop files.
  654. * toplev.c (init_asm_output): Remove graphite in/out file initialization.
  655. 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de>
  656. * graphite-scop-detection.c (graphite_can_represent_scev): Remove
  657. redundant checks.
  658. 2010-08-12 Sebastian Pop <sebastian.pop@amd.com>
  659. * graphite-clast-to-gimple.c (precision_for_value): Adjust
  660. computation of precision by 1.
  661. 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com>
  662. * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
  663. (openscop_read_polyhedron_matrix): New.
  664. * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
  665. (openscop_read_N_int): Same.
  666. * graphite-poly.c (openscop_read_N_int): New.
  667. (openscop_read_one_int): New.
  668. (openscop_read_N_string): New.
  669. (openscop_read_one_string): New.
  670. (openscop_read_powerset_matrix): New.
  671. (graphite_read_transforms): Remove.
  672. (graphite_read_scatt): New.
  673. (graphite_read_scop_file): New.
  674. (apply_poly_transforms): Updated to call graphite_read_scop_file.
  675. 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  676. * graphite-poly.c: Change include order.
  677. 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  678. * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
  679. (cloog_matrix_nrows): New.
  680. 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
  681. * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
  682. from matrix lines.
  683. * graphite-poly.c (openscop_print_scattering_function_1): Same.
  684. (print_scattering_function_1): Same.
  685. (openscop_print_pbb_domain): Same.
  686. (openscop_print_scop_context): Same.
  687. (print_scop_context): Same.
  688. 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
  689. * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
  690. (openscop_print_pdr_polyhedron): Print pph.
  691. 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
  692. * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
  693. * gfortran.dg/graphite/graphite.exp: Same.
  694. * gcc.dg/graphite/vect-pr43423.c: New.
  695. 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
  696. * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
  697. priority signed types.
  698. 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
  699. * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
  700. to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
  701. 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com>
  702. * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
  703. (openscop_print_polyhedron_matrix): New.
  704. * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
  705. * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
  706. (openscop_print_pdr_powerset): New.
  707. (openscop_print_powerset_matrix): New.
  708. (openscop_print_scattering_function_1): New.
  709. (print_scattering_function): Add support for scattering names and
  710. OpenScop format.
  711. (graphite_write_transforms): Remove.
  712. (apply_poly_transforms): Updated to call print_scop.
  713. (print_pdr_access_layout): Updated to support OpenScop format.
  714. (print_pdr): Same.
  715. (openscop_print_pbb_domain): New.
  716. (print_pbb_body): Added a parameter to allow indicating that pbb_body is
  717. not provided.
  718. (print_pbb): Updated to call the new print_pbb_body.
  719. (openscop_print_scop_context): New.
  720. (print_scop_header): New.
  721. (print_scop): Updated to call print_scop_header.
  722. * graphite-poly.h: Document OpenScop format.
  723. 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
  724. * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
  725. the case removed in the previous patch, when the only phi argument
  726. is defined in the same loop as the phi node itself. Handle it
  727. separately from the invariant case by both propagating it outside
  728. the region and replacing the phi node with an assign.
  729. 2010-07-28 Sebastian Pop <sebastian.pop@amd.com>
  730. * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
  731. constant phi nodes with one argument are is_gimple_min_invariant
  732. and SSA_NAME_IS_DEFAULT_DEF.
  733. * gfortran.dg/graphite/id-22.f: New.
  734. 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  735. * graphite.c (graphite_initialize): Do not initialize
  736. CLooG and initialize the Parma Polyhedra Library
  737. manually when using CLOOG_ORG.
  738. (graphite_finalize): Do not finalize CLooG and finalize
  739. the Parma Polyhedra Library manually when using CLOOG_ORG.
  740. * graphite-cloog-compat.h (cloog_initialize): Hide function
  741. when using CLOOG_ORG.
  742. (cloog_finalize): Same.
  743. 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  744. * graphite-clast-to-gimple.c (free_scattering): Change
  745. CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
  746. (CLOOG_ORG).
  747. (build_cloog_prog): Same.
  748. * graphite-cloog-compat.h (cloog_domain): Removed.
  749. (cloog_scattering): New.
  750. (cloog_set_domain): Removed.
  751. (cloog_set_scattering): New.
  752. (cloog_next_domain): Removed.
  753. (cloog_next_scattering): New.
  754. (cloog_set_next_domain): Removed.
  755. (cloog_set_next_scattering): New.
  756. (CloogScatteringList): New.
  757. (CloogScattering): New.
  758. (cloog_scattering_free): New.
  759. (new_Cloog_Scattering_from_ppl_Polyhedron): New.
  760. * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
  761. New.
  762. 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  763. * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
  764. CloogState.
  765. (set_cloog_options): Same.
  766. (print_clast_stmt): Same.
  767. (scop_to_clast): Same.
  768. (print_generated_program): Same.
  769. (gloog): Same.
  770. * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
  771. (scop_to_clast): Extend with CloogState.
  772. * graphite-cloog-util.c: Include graphite-cloog-compat.h
  773. (new_Cloog_Domain_from_ppl_Polyhedron):
  774. Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
  775. (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
  776. (new_Cloog_Domain_from_ppl_Polyhedron): Same.
  777. * graphite-cloog-util.h (build_cloog_prog): Same.
  778. * graphite-cloog-copat.h (build_cloog_prog): New.
  779. (CloogState): New.
  780. (cloog_state_malloc): New.
  781. (cloog_state_free): New.
  782. (cloog_loop_malloc): New.
  783. (cloog_options_malloc): New.
  784. (cloog_statement_alloc): New.
  785. (cloog_domain_from_cloog_matrix): New.
  786. (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
  787. (new_Cloog_Domain_from_ppl_Polyhedron): New.
  788. 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  789. * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
  790. type of NAME now depends on used CLooG version.
  791. (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
  792. (gcc_type_for_clast_expr): Same.
  793. (print_clast_stmt): Replace pprint with clast_pprint.
  794. * graphite-cloog-compat.h: Provide compatibility macros for
  795. CLooG Legacy.
  796. (clast_name_p): New.
  797. (clast_expr_term): New.
  798. (clast_expr_red): New.
  799. (clast_expr_bin): New.
  800. (clast_pprint): New.
  801. 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  802. * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
  803. compatible to newer CLooG releases (CLOOG_ORG).
  804. (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
  805. (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
  806. * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
  807. (build_cloog_prog) : New.
  808. (cloog_program_extract_scalars): New.
  809. (cloog_program_scatter): New.
  810. 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  811. * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
  812. conditionally (CLOOG_ORG).
  813. * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
  814. (cloog_statement_usr): New.
  815. (cloog_domain): Same.
  816. (cloog_set_domain): Same.
  817. (cloog_next_domain): Same.
  818. (cloog_set_next_domain): Same.
  819. (cloog_program_nb_scattdims): Same.
  820. (cloog_program_set_nb_scattdims): Same.
  821. (cloog_program_names): Same.
  822. (cloog_program_set_names): Same.
  823. (cloog_program_set_context): Same.
  824. (cloog_program_set_loop): Same.
  825. (cloog_program_blocklist): Same.
  826. (cloog_program_set_blocklist): Same.
  827. (cloog_program_scaldims): Same.
  828. (cloog_program_set_scaldims): Same.
  829. (cloog_names_nb_parameters): Same.
  830. (cloog_names_set_nb_parameters): Same.
  831. (cloog_names_parameters): Same.
  832. (cloog_names_set_parameters): Same.
  833. (cloog_names_set_nb_iterators): Same.
  834. (cloog_names_set_iterators): Same.
  835. (cloog_names_set_nb_scattering): Same.
  836. (cloog_names_set_scattering): Same.
  837. (cloog_statement_set_usr): Same.
  838. (cloog_loop_set_next): Same.
  839. (cloog_loop_set_domain): Same.
  840. (cloog_loop_set_block): Same.
  841. (cloog_block_list_next): Same.
  842. (cloog_block_list_set_next):
  843. (cloog_block_list_set_block): Same.
  844. 2010-07-27 Sebastian Pop <sebastian.pop@amd.com>
  845. * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
  846. a bool.
  847. (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
  848. (rewrite_commutative_reductions_out_of_ssa_loop): Same.
  849. (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
  850. when something has been changed.
  851. (rewrite_commutative_reductions_out_of_ssa): Same.
  852. * gcc.dg/graphite/id-26.c: New.
  853. 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
  854. * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
  855. handle the case when def is in the sese region.
  856. (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
  857. for invariant expressions.
  858. (rewrite_cross_bb_phi_deps): Removed.
  859. (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
  860. (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
  861. rewrite_cross_bb_phi_deps.
  862. 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
  863. * graphite-sese-to-poly.c
  864. (rewrite_commutative_reductions_out_of_ssa_loop): Call
  865. scev_analyzable_p only on is_gimple_reg
  866. * gcc.dg/graphite/id-25.c: New.
  867. 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
  868. * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
  869. (rewrite_close_phi_out_of_ssa): Propagate constant values or
  870. parametric expressions outside the scop region.
  871. (rewrite_cross_bb_scalar_deps): Same.
  872. * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
  873. * gcc.dg/graphite/run-id-5.c: New.
  874. * gcc.dg/graphite/run-id-6.c: New.
  875. * gfortran.dg/graphite/id-21.f: New.
  876. 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
  877. * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
  878. SSA_NAME_DEF_STMT only on SSA_NAMEs.
  879. * gcc.dg/graphite/id-24.c: New.
  880. 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
  881. * tree-scalar-evolution.c (instantiate_scev_name): Do not
  882. instantiate default definitions.
  883. 2010-07-20 Vladimir Kargov <kargov@gmail.com>
  884. * graphite-scop-detection.c (is_valid_stmt_p): New.
  885. (is_valid_bb_p): New.
  886. 2010-07-20 Vladimir Kargov <kargov@gmail.com>
  887. Sebastian Pop <sebastian.pop@amd.com>
  888. * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
  889. (loop_exits_from_bb_p): New.
  890. * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
  891. (loop_exits_from_bb_p): Declared.
  892. * graphite-scop-detection.c (scopdet_basic_block_info): Call
  893. loop_exits_to_bb_p.
  894. 2010-07-20 Vladimir Kargov <kargov@gmail.com>
  895. * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and
  896. tree-data-ref.h.
  897. (dot_regions_1): New.
  898. (dot_regions): New.
  899. * refined-regions.h (dot_regions): Declared.
  900. * Makefile.in (refined-regions.o): Update dependences.
  901. 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
  902. * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
  903. extra parameter for the region. Call scev_analyzable_p.
  904. (rewrite_reductions_out_of_ssa): Update call to
  905. rewrite_close_phi_out_of_ssa.
  906. (rewrite_cross_bb_phi_deps): Same.
  907. (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
  908. parameter for the region. Call scev_analyzable_p.
  909. (rewrite_commutative_reductions_out_of_ssa): Update call to
  910. rewrite_commutative_reductions_out_of_ssa_loop.
  911. 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
  912. * gcc.dg/tree-ssa/pr20742.c: New.
  913. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  914. * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
  915. * gcc.dg/graphite/id-23.c: New.
  916. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  917. * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
  918. SSA scalar phi nodes that can be scev_analyzable_p.
  919. * gfortran.dg/graphite/id-20.f: Adjust testcase.
  920. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  921. * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
  922. handle SSA_NAME_IS_DEFAULT_DEF.
  923. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  924. * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
  925. * gcc.dg/graphite/pr42729.c: New.
  926. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  927. * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
  928. case non close-phi nodes with one argument.
  929. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  930. * sese.h (scev_analyzable_p): Scevs could be expressions without
  931. chrecs and still be scev_analyzable_p.
  932. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  933. * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
  934. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  935. * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
  936. * cfgloop.h (struct loop): Remove single_iv field.
  937. * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
  938. (scop_canonicalize_loops): Removed.
  939. (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
  940. over all the loop phi nodes in loop->header.
  941. (build_poly_scop): Remove use of scop_canonicalize_loops.
  942. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  943. * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
  944. handle GIMPLE_CALL.
  945. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  946. * tree-chrec.c (chrec_apply): Should only apply to the specified
  947. variable. Also handle multivariate chains of recurrences that
  948. satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
  949. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  950. * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
  951. (debug_clast_name_indexes_1): Removed.
  952. (debug_clast_name_indexes): Removed.
  953. (pbb_to_depth_to_oldiv): Removed.
  954. (build_iv_mapping): Replace the use of rename_map with iv_map.
  955. (translate_clast_user): Remove uses of rename_map. Allocate and
  956. free iv_map.
  957. (translate_clast_for_loop): Remove uses of rename_map.
  958. (translate_clast_for): Same.
  959. (translate_clast_guard): Same.
  960. (translate_clast): Same.
  961. (gloog): Same.
  962. * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
  963. * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
  964. * sese.c (set_rename): Now static.
  965. (rename_variables_in_stmt): Removed.
  966. (rename_uses): New.
  967. (is_parameter): Removed.
  968. (is_iv): Removed.
  969. (expand_scalar_variables_call): Removed.
  970. (expand_scalar_variables_ssa_name): Removed.
  971. (expand_scalar_variables_expr): Removed.
  972. (expand_scalar_variables_stmt): Removed.
  973. (expand_scalar_variables): Removed.
  974. (rename_variables): Removed.
  975. (remove_condition): Removed.
  976. (get_true_edge_from_guard_bb): Removed.
  977. (get_false_edge_from_guard_bb): Removed.
  978. (struct igp): Removed.
  979. (default_before_guard): Removed.
  980. (convert_for_phi_arg): Removed.
  981. (add_guard_exit_phis): Removed.
  982. (insert_guard_phis): Removed.
  983. (graphite_copy_stmts_from_block): Now also uses iv_map and a
  984. region. Do not copy conditions. Do not copy induction variables.
  985. Call rename_uses.
  986. (copy_bb_and_scalar_dependences): Allocate a local rename_map for
  987. the translated statement. Use the iv_map for the induction
  988. variable renaming.
  989. * sese.h (copy_bb_and_scalar_dependences): Update declaration.
  990. (set_rename): Removed declaration.
  991. (scev_analyzable_p): ...here.
  992. * tree-chrec.c (chrec_apply_map): New.
  993. * tree-chrec.h (chrec_apply_map): Declared.
  994. 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
  995. * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
  996. insert_loop_close_phis.
  997. * sese.c (name_defined_in_loop_p): Removed.
  998. (expr_defined_in_loop_p): Removed.
  999. (alive_after_loop): Removed.
  1000. (close_phi_not_yet_inserted_p): Removed.
  1001. (struct alep): Removed.
  1002. (add_loop_exit_phis): Removed.
  1003. (insert_loop_close_phis): Removed.
  1004. 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  1005. * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped
  1006. condition.
  1007. * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same.
  1008. 2010-07-07 Sebastian Pop <sebastian.pop@amd.com>
  1009. * gfortran.dg/graphite/id-20.f: New.
  1010. 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  1011. * graphite-cloog-util.h: Added cloog.h.
  1012. * graphite-blocking.c: Removed cloog.h.
  1013. * graphite-dependences.c: Same.
  1014. * graphite-interchange.c: Same.
  1015. * graphite-poly.c: Same.
  1016. * graphite-ppl.c: Same.
  1017. * graphite-scop-detection.c: Same.
  1018. * graphite-sese-to-poly.c:
  1019. Removed cloog.h.
  1020. Removed graphite-clast-to-gimple.h.
  1021. (check_poly_representation): Removed (unused).
  1022. * graphite-sese-to-poly.h
  1023. (check_poly_representation): Removed (unused).
  1024. 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  1025. * Makefile.in
  1026. (OBJS-common): Added graphite-cloog-util.o.
  1027. (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
  1028. (graphite-cloog-util.o): New.
  1029. (graphite-ppl.o): Added graphite-cloog-util.h.
  1030. * graphite-clast-to-gimple.c:
  1031. Added graphite-cloog-util.h to include statements.
  1032. * graphite-cloog-util.c: New.
  1033. (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
  1034. (new_Cloog_Domain_from_ppl_Polyhedron): Same.
  1035. (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
  1036. (new_C_Polyhedron_from_Cloog_Matrix): Same.
  1037. (ppl_Constrain_System_number_of_constraints): Same.
  1038. (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
  1039. (oppose_constraint): Same.
  1040. (cloog_matrix_to_ppl_constraint): Same.
  1041. (new_Constraint_System_from_Cloog_Matrix): Same.
  1042. (insert_constraint_into_matrix): Same. Declared static.
  1043. * graphite-cloog-util.h: New.
  1044. (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
  1045. (new_Cloog_Domain_from_ppl_Polyhedron): Same.
  1046. (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
  1047. (new_C_Polyhedron_from_Cloog_Matrix): Same.
  1048. (insert_constraint_into_matrix): Same.
  1049. * graphite-ppl.c:
  1050. Added graphite-cloog-util.h to include statements.
  1051. (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
  1052. (new_Cloog_Domain_from_ppl_Polyhedron): Same.
  1053. (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
  1054. (new_C_Polyhedron_from_Cloog_Matrix): Same.
  1055. (insert_constraint_into_matrix): Same.
  1056. (ppl_Constrain_System_number_of_constraints): Same.
  1057. (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
  1058. (oppose_constraint): Same.
  1059. (cloog_matrix_to_ppl_constraint): Same.
  1060. (new_Constraint_System_from_Cloog_Matrix): Same.
  1061. * graphite-ppl.h:
  1062. (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
  1063. graphite-cloog-util.h.
  1064. (new_Cloog_Domain_from_ppl_Polyhedron): Same.
  1065. (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
  1066. (new_C_Polyhedron_from_Cloog_Matrix): Same.
  1067. (insert_constraint_into_matrix): Removed.
  1068. 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  1069. * graphite-clast-to-gimple.c
  1070. (precision_for_value): Resolve value_* calls to matching mpz_* calls.
  1071. (precision_for_interval): Same.
  1072. (gcc_type_for_interval): Same.
  1073. (compute_type_for_level): Same.
  1074. * graphite-interchange.c
  1075. (lst_interchange_profitable_p): Same.
  1076. * graphite-poly.c
  1077. (psct_scattering_dim_for_loop_depth): Same.
  1078. * graphite-ppl.c
  1079. (ppl_max_for_le_pointset): Same.
  1080. (ppl_min_for_le_pointset): Same.
  1081. 2010-06-25 Vladimir Kargov <kargov@gmail.com>
  1082. * refined-regions.c (bb_index_compare): New.
  1083. (get_bbs_in_region): New.
  1084. (print_bbs_in_region): New.
  1085. (print_refined_region): Add an argument that allows to print
  1086. all basic blocks contained in regions.
  1087. (debug_refined_region): Update call to print_refined_region.
  1088. * refined-regions.h (print_refined_region): Update declaration.
  1089. (get_bbs_in_region): Declared.
  1090. * graphite-scop-detection.c (build_scops_new): Print the refined
  1091. region tree into the Grahite dump file.
  1092. 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
  1093. * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
  1094. (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
  1095. 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
  1096. * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
  1097. rewrite_close_phi_out_of_ssa.
  1098. * gcc.dg/graphite/id-22.c: New.
  1099. 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
  1100. * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
  1101. 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
  1102. * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
  1103. rename_map.
  1104. * sese.c (debug_rename_map): Same.
  1105. (get_rename): Same.
  1106. (set_rename): Same.
  1107. (rename_variables_in_stmt): Same.
  1108. (expand_scalar_variables_call): Same.
  1109. (expand_scalar_variables_ssa_name): Same.
  1110. (expand_scalar_variables_expr): Same.
  1111. (expand_scalar_variables_stmt): Same.
  1112. (expand_scalar_variables): Same.
  1113. (rename_variables): Same.
  1114. (graphite_copy_stmts_from_block): Same.
  1115. (copy_bb_and_scalar_dependences): Same.
  1116. 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
  1117. * graphite-clast-to-gimple.c (copy_renames): Removed.
  1118. (translate_clast_for): Do not call copy_renames.
  1119. (translate_clast_guard): Same.
  1120. 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
  1121. * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
  1122. (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
  1123. (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
  1124. before rewrite_cross_bb_scalar_deps.
  1125. 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
  1126. * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
  1127. Early return in when flag_associative_math is not set.
  1128. 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
  1129. * gcc.dg/graphite/run-id-2.c: Call abort.
  1130. 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
  1131. * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
  1132. of SSA copies on edges except for loop->latch.
  1133. 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
  1134. * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
  1135. Split out of rewrite_reductions_out_of_ssa.
  1136. * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
  1137. Declared.
  1138. * graphite.c (graphite_transform_loops): Call it.
  1139. 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
  1140. * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
  1141. 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
  1142. * passes.c (init_optimization_passes): Add pass_graphite.
  1143. Schedule a pass_copy_prop before pass_graphite_transforms.
  1144. * timevar.def (TV_GRAPHITE): Declared.
  1145. * tree-pass.h (pass_graphite): Declared.
  1146. * tree-ssa-loop.c (pass_graphite): New.
  1147. * gcc.dg/graphite/id-20.c: New.
  1148. 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
  1149. * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
  1150. Remove calls to rename_nb_iterations and rename_sese_parameters.
  1151. * graphite-clast-to-gimple.h (gloog): Update declaration.
  1152. * graphite.c (graphite_transform_loops): Update call to gloog.
  1153. * sese.c (rename_variables_in_expr): Removed.
  1154. (rename_nb_iterations): Removed.
  1155. (rename_sese_parameters): Removed.
  1156. * sese.h (rename_nb_iterations): Removed.
  1157. (rename_sese_parameters): Removed.
  1158. 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
  1159. * graphite-clast-to-gimple.c (gloog): Remove call to
  1160. sese_adjust_liveout_phis.
  1161. * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
  1162. SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
  1163. (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
  1164. rewrite_phi_out_of_ssa.
  1165. * sese.c (get_vdef_before_sese): Removed.
  1166. (sese_adjust_vphi): Removed.
  1167. (sese_adjust_liveout_phis): Removed.
  1168. * sese.h (sese_adjust_liveout_phis): Removed.
  1169. 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
  1170. * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
  1171. argument for the place after which to insert the out of SSA copy.
  1172. (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
  1173. (rewrite_phi_out_of_ssa): Same.
  1174. (rewrite_cross_bb_scalar_deps): Same.
  1175. (insert_copyout): Removed.
  1176. (insert_copyin): Removed.
  1177. (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
  1178. insert_out_of_ssa_copy_on_edge instead of insert_copyout and
  1179. insert_copyin.
  1180. 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
  1181. * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
  1182. (rewrite_reductions_out_of_ssa): Same.
  1183. (rewrite_commutative_reductions_out_of_ssa): Same.
  1184. (build_poly_scop): Do not call these functions.
  1185. * graphite-sese-to-poly.h (build_poly_scop): Declared.
  1186. (rewrite_reductions_out_of_ssa): Declared.
  1187. (rewrite_commutative_reductions_out_of_ssa): Declared.
  1188. * graphite.c (graphite_transform_loops): Call on every scop
  1189. rewrite_commutative_reductions_out_of_ssa before calling
  1190. rewrite_reductions_out_of_ssa and build_scop_bbs.
  1191. 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
  1192. * graphite-dependences.c (dot_deps): Make system call to dotty run
  1193. in background.
  1194. (dot_deps_stmt): Same.
  1195. * graphite-poly.c (dot_lst): Same.
  1196. 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
  1197. * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
  1198. old_type in parameter.
  1199. (gcc_type_for_value): Update call to gcc_type_for_interval.
  1200. (compute_type_for_level_1): Renamed compute_type_for_level.
  1201. Update call to gcc_type_for_interval.
  1202. 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
  1203. * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
  1204. the scev analysis when the variable is not used outside the loop
  1205. in a close phi node: call compute_overall_effect_of_inner_loop.
  1206. 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
  1207. * graphite-sese-to-poly.c (single_pred_cond): Renamed
  1208. single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
  1209. (build_sese_conditions_before): Renamed call to single_pred_cond.
  1210. (build_sese_conditions_after): Same.
  1211. 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
  1212. * graphite-poly.h: Fix comments and indentation.
  1213. * graphite-sese-to-poly.c: Same.
  1214. (build_sese_conditions_before): Compute stmt and gbb only when needed.
  1215. * tree-chrec.c: Fix comments and indentation.
  1216. (tree-ssa-loop-niter.c): Same.
  1217. 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
  1218. * refined-regions.c (create_region): Only initialize the region.
  1219. (find_regions_with_entry): Initialize parent relation and bbmap
  1220. correctly.
  1221. (build_regions_tree): Set outermost_region to region instead of
  1222. topmost_region.
  1223. (calculate_region_tree): Remove unneeded parameters.
  1224. 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
  1225. * graphite-scop-detection.c (is_scop_p): New.
  1226. (build_scops_new): New. A skeleton for the new scop detection.
  1227. (build_scops_old): Renamed from build_scops.
  1228. (build_scops): New version. Call the new and the old scop
  1229. detection.
  1230. 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
  1231. Antoniu Pop <antoniu.pop@gmail.com>
  1232. * Makefile.in (OBJS-common): Add refined-regions.o.
  1233. (refined-regions.o): New.
  1234. (graphite-scop-detection.o): Use refined-regions.h.
  1235. * graphite-scop-detection.c: Include refined-regions.h
  1236. (build_scops): Also build the refined region tree.
  1237. * refined-regions.c: New. Adds an algorithm to detect refined
  1238. regions.
  1239. (print_refined_region): New.
  1240. (debug_refined_region): New.
  1241. (refined_region_contains_bb_p): New.
  1242. (refined_region_contains_region_p): New.
  1243. (is_common_df): New.
  1244. (struct find_regions_global_data): New.
  1245. (is_region): New.
  1246. (typedef struct bb_bb_def): New.
  1247. (new_bb_bb_def): New.
  1248. (bb_bb_map_hash): New.
  1249. (eq_bb_bb_map): New.
  1250. (find_new_bb): New.
  1251. (bb_reg_def): New.
  1252. (new_bb_reg_def): New.
  1253. (bb_reg_map_hash): New.
  1254. (eq_bb_reg_map): New.
  1255. (find_new_region): New.
  1256. (insert_new_reg): New.
  1257. (insert_new_bb): New.
  1258. (insert_shortcut): New.
  1259. (get_next_postdom): New.
  1260. (create_region): New.
  1261. (find_regions_with_entry): New.
  1262. (find_regions_adc): New.
  1263. (find_regions): New.
  1264. (get_topmost_parent): New.
  1265. (build_regions_tree): New.
  1266. (calculate_region_tree): New.
  1267. (free_region_tree): New.
  1268. * refined-regions.h: New.
  1269. (struct refined_region): New.
  1270. (calculate_region_tree): New.
  1271. (free_region_tree): New.
  1272. (refined_region_contains_bb_p): New.
  1273. (refined_region_contains_region_p): New.
  1274. (print_refined_region): New.
  1275. (debug_refined_region): New.
  1276. 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
  1277. * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
  1278. size_one_node.
  1279. 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
  1280. * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
  1281. type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
  1282. 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
  1283. * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
  1284. phi_arg_in_outermost_loop.
  1285. (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
  1286. (remove_invariant_phi): Same.
  1287. 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  1288. * graphite-blocking.c
  1289. (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
  1290. * graphite-clast-to-gimple.c
  1291. (clast_to_gcc_expression): Same.
  1292. (precision_for_value): Same.
  1293. (precision_for_interval): Same.
  1294. (gcc_type_for_interval): Same.
  1295. (graphite_create_new_guard): Same.
  1296. (compute_bounds_for_level): Same.
  1297. (graphite_create_new_loop_guard): Same.
  1298. * graphite-interchange.c
  1299. (build_linearized_memory_access): Same.
  1300. (pdr_stride_in_loop): Same.
  1301. (memory_strides_in_loop_1): Same.
  1302. (memory_strides_in_loop): Same.
  1303. (extend_scattering): Same.
  1304. (psct_scattering_dim_for_loop_depth): Same.
  1305. (pbb_number_of_iterations): Same.
  1306. * graphite-poly.h
  1307. (debug_iteration_domains): Same.
  1308. * graphite-ppl.c
  1309. (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
  1310. (ppl_set_inhomogeneous_gmp): Same.
  1311. (ppl_strip_loop): Same.
  1312. (ppl_lexico_compare_linear_expressions): Same.
  1313. (ppl_read_polyhedron_matrix): Same.
  1314. (ppl_max_for_le_pointset): Same.
  1315. * graphite-ppl.h
  1316. (ppl_read_polyhedron_matrix): Same.
  1317. (tree_int_to_gmp): Same.
  1318. (gmp_cst_to_tree): Same.
  1319. (ppl_set_inhomogeneous): Same.
  1320. (ppl_set_inhomogeneous_tree): Same.
  1321. (ppl_set_coef): Same.
  1322. (ppl_set_coef_tree): Same.
  1323. * graphite-sese-to-poly.c
  1324. (build_pbb_scattering_polyhedrons): Same.
  1325. (build_scop_scattering): Same.
  1326. (scan_tree_for_params_right_scev): Same.
  1327. (scan_tree_for_params): Same.
  1328. (find_params_in_bb): Same.
  1329. (find_scop_parameters): Same.
  1330. (add_upper_bounds_from_estimated_nit): Same.
  1331. (build_loop_iteration_domains): Same.
  1332. (add_condition_to_domain): Same.
  1333. (pdr_add_memory_accesses): Same.
  1334. 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
  1335. * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
  1336. CLooG's value_* macros to their respective mpz_* counterparts.
  1337. * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
  1338. (graphite_create_new_loop_guard): Same.
  1339. * graphite-interchange.c (build_linearized_memory_access): Same.
  1340. (pdr_stride_in_loop): Same.
  1341. (memory_strides_in_loop_1): Same.
  1342. (1st_interchange_profitable_p): Same.
  1343. * graphite-poly.c (extend_scattering): Same.
  1344. (psct_scattering_dim_for_loop_depth): Same.
  1345. (pbb_number_of_iterations): Same.
  1346. (pbb_number_of_iterations_at_time): Same.
  1347. * graphite-poly.h (new_1st_loop): Same.
  1348. * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
  1349. (oppose_constraint): Same.
  1350. (insert_constraint_into_matrix): Same.
  1351. (ppl_set_inhomogeneous_gmp): Same.
  1352. (ppl_set_coef_gmp): Same.
  1353. (ppl_strip_loop): Same.
  1354. (ppl_lexico_compare_linear_expressions): Same.
  1355. (ppl_max_for_le_pointset): Same.
  1356. (ppl_min_for_le_pointset): Same.
  1357. (ppl_build_realtion): Same.
  1358. * graphite-ppl.h (gmp_cst_to_tree): Same.
  1359. (ppl_set_inhomogeneous): Same.
  1360. (ppl_set_inhomogeneous_tree): Same.
  1361. (ppl_set_coef): Same.
  1362. (ppl_set_coef_tree): Same.
  1363. * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
  1364. (build_scop_scattering): Same.
  1365. (add_value_to_dim): Same.
  1366. (scan_tree_for_params_right_scev): Same.
  1367. (scan_tree_for_params_int): Same.
  1368. (scan_tree_for_params): Same.
  1369. (find_params_in_bb): Same.
  1370. (find_scop_parameters): Same.
  1371. (add_upper_bounds_from_estimated_nit): Same.
  1372. (build_loop_iteration_domains): Same.
  1373. (create_linear_expr_from_tree): Same.
  1374. (add_condition_to_domain): Same.
  1375. (pdr_add_memory_accesses): Same.
  1376. 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
  1377. PR middle-end/43519
  1378. * graphite-clast-to-gimple.c (max_signed_precision_type): Use
  1379. lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
  1380. When converting an unsigned type to signed, double its precision.
  1381. (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
  1382. (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
  1383. (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
  1384. 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
  1385. PR middle-end/43519
  1386. * graphite-clast-to-gimple.c (max_signed_precision_type): Use
  1387. build_nonstandard_integer_type.
  1388. (gcc_type_for_interval): Same.
  1389. 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
  1390. PR middle-end/43519
  1391. * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
  1392. POINTER_PLUS_EXPR for pointer types.
  1393. * gcc.dg/graphite/id-19.c: New.
  1394. 2010-04-04 Sebastian Pop <sebastian.pop@amd.com>
  1395. PR middle-end/43519
  1396. * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
  1397. * graphite-clast-to-gimple.c: Include langhooks.h.
  1398. (max_signed_precision_type): New.
  1399. (max_precision_type): Takes two types as arguments.
  1400. (precision_for_value): New.
  1401. (precision_for_interval): New.
  1402. (gcc_type_for_interval): New.
  1403. (gcc_type_for_value): New.
  1404. (gcc_type_for_clast_term): New.
  1405. (gcc_type_for_clast_red): New.
  1406. (gcc_type_for_clast_bin): New.
  1407. (gcc_type_for_clast_expr): Split up into several functions.
  1408. (gcc_type_for_clast_eq): Rewritten.
  1409. (compute_bounds_for_level): New.
  1410. (compute_type_for_level_1): New.
  1411. (compute_type_for_level): New.
  1412. (gcc_type_for_cloog_iv): Removed.
  1413. (gcc_type_for_iv_of_clast_loop): Rewritten.
  1414. (graphite_create_new_loop): Compute the lower and upper bound types
  1415. with gcc_type_for_clast_expr.
  1416. (graphite_create_new_loop_guard): Same.
  1417. (find_cloog_iv_in_expr): Removed.
  1418. (compute_cloog_iv_types_1): Removed.
  1419. (compute_cloog_iv_types): Removed.
  1420. (gloog): Do not call compute_cloog_iv_types.
  1421. * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
  1422. GBB_CLOOG_IV_TYPES.
  1423. (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
  1424. * sese.h (struct gimple_bb): Removed field cloog_iv_types.
  1425. (GBB_CLOOG_IV_TYPES): Removed.
  1426. * gcc.dg/graphite/run-id-pr42644.c: Call abort.
  1427. 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
  1428. Reverted this commit: as at this point the loop closed SSA form
  1429. is under a canonical form respecting the single argument condition.
  1430. * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
  1431. close phi nodes may have more than one argument.
  1432. 2010-04-01 Sebastian Pop <sebastian.pop@amd.com>
  1433. * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
  1434. gimple_phi_num_args of the loop close SSA phi node is equal to 1.
  1435. (detect_commutative_reduction): Same.
  1436. 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
  1437. * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
  1438. close phi nodes may have more than one argument.
  1439. 2010-03-30 Richard Guenther <rguenther@suse.de>
  1440. Zdenek Dvorak <ook@ucw.cz>
  1441. Sebastian Pop <sebastian.pop@amd.com>
  1442. PR middle-end/43464
  1443. * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
  1444. with multiple arguments.
  1445. (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
  1446. 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
  1447. * graphite-dependences.c (print_pddr): Call print_pdr with an
  1448. extra argument.
  1449. * graphite-poly.c (debug_pdr): Add an extra argument for the
  1450. verbosity level.
  1451. (print_pdr): Same.
  1452. (print_pbb_domain): Same.
  1453. (print_pbb): Same.
  1454. (print_scop_context): Same.
  1455. (print_scop): Same.
  1456. (print_cloog): Same.
  1457. (debug_pbb_domain): Same.
  1458. (debug_pbb): Same.
  1459. (print_pdrs): Same.
  1460. (debug_pdrs): Same.
  1461. (debug_scop_context): Same.
  1462. (debug_scop): Same.
  1463. (debug_cloog): Same.
  1464. (print_scop_params): Same.
  1465. (debug_scop_params): Same.
  1466. (print_iteration_domain): Same.
  1467. (print_iteration_domains): Same.
  1468. (debug_iteration_domain): Same.
  1469. (debug_iteration_domains): Same.
  1470. (print_scattering_function): Same.
  1471. (print_scattering_functions): Same.
  1472. (debug_scattering_function): Same.
  1473. (debug_scattering_functions): Same.
  1474. * graphite-poly.h (debug_pdr): Update declaration.
  1475. (print_pdr): Same.
  1476. (print_pbb_domain): Same.
  1477. (print_pbb): Same.
  1478. (print_scop_context): Same.
  1479. (print_scop): Same.
  1480. (print_cloog): Same.
  1481. (debug_pbb_domain): Same.
  1482. (debug_pbb): Same.
  1483. (print_pdrs): Same.
  1484. (debug_pdrs): Same.
  1485. (debug_scop_context): Same.
  1486. (debug_scop): Same.
  1487. (debug_cloog): Same.
  1488. (print_scop_params): Same.
  1489. (debug_scop_params): Same.
  1490. (print_iteration_domain): Same.
  1491. (print_iteration_domains): Same.
  1492. (debug_iteration_domain): Same.
  1493. (debug_iteration_domains): Same.
  1494. (print_scattering_function): Same.
  1495. (print_scattering_functions): Same.
  1496. (debug_scattering_function): Same.
  1497. (debug_scattering_functions): Same.
  1498. 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
  1499. * graphite-poly.c (print_scattering_function_1): New.
  1500. (print_scattering_function): Call it.
  1501. (print_scop_params): Remove spaces at the end of lines.
  1502. (print_cloog): New.
  1503. (debug_cloog): New.
  1504. * graphite-poly.h (print_cloog): Declared.
  1505. (debug_cloog): Declared.
  1506. 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
  1507. * tree-ssa-copy.c: Revert this previous change:
  1508. (init_copy_prop): Loop closed phi nodes cancontain more than one
  1509. argument.
  1510. (execute_copy_prop): Revert the previous change: do not call
  1511. rewrite_into_loop_closed_ssa.
  1512. 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
  1513. Richard Guenther <rguenther@suse.de>
  1514. PR middle-end/43464
  1515. * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
  1516. contain more than one argument.
  1517. (execute_copy_prop): Revert the previous change: do not call
  1518. rewrite_into_loop_closed_ssa.
  1519. * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
  1520. * gcc.dg/graphite/id-pr43464-1.c: New.
  1521. 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
  1522. PR middle-end/43464
  1523. * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
  1524. and verify_loop_closed_ssa when copy prop is executed in the LNO.
  1525. * gcc.dg/graphite/id-pr43464.c: New.
  1526. 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
  1527. * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
  1528. in loop->header.
  1529. * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
  1530. * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
  1531. * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
  1532. to switch between adding the IV bump in loop->latch or in loop->header.
  1533. 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
  1534. * passes.c (init_optimization_passes): Add pass_copy_prop
  1535. after Graphite.
  1536. 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
  1537. * graphite-poly.c (print_scattering_function): Pretty print following
  1538. the scoplib format.
  1539. (print_pdr): Same.
  1540. (print_pbb_domain): Same.
  1541. (dump_gbb_cases): Same.
  1542. (dump_gbb_conditions): Same.
  1543. (print_pdrs): Same.
  1544. (print_pbb): Same.
  1545. (print_scop_params): Same.
  1546. (print_scop_context): Same.
  1547. (print_scop): Same.
  1548. (print_pbb_body): New.
  1549. (lst_indent_to): New.
  1550. (print_lst): Start new lines with a #.
  1551. * graphite-poly.h (pbb_bb): New.
  1552. (pbb_index): Use pbb_bb.
  1553. * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
  1554. disjuncts.
  1555. * tree-data-ref.c (dump_data_reference): Start new lines with a #.
  1556. 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
  1557. PR middle-end/43351
  1558. * gcc.dg/graphite/id-pr43351.c
  1559. 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
  1560. PR middle-end/43354
  1561. * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
  1562. call insert_out_of_ssa_copy for default definitions.
  1563. * gfortran.dg/graphite/id-pr43354.f: New.
  1564. 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
  1565. PR middle-end/43349
  1566. * gfortran.dg/graphite/pr43349.f: New.
  1567. 2010-03-11 Sebastian Pop <sebastian.pop@amd.com>
  1568. * graphite-clast-to-gimple.c (my_long_long): Defined.
  1569. (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
  1570. * graphite-sese-to-poly.c (my_long_long): Defined.
  1571. (scop_ivs_can_be_represented): Use it.
  1572. 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
  1573. * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
  1574. graphite-max-bbs-per-function, and loop-block-tile-size.
  1575. * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
  1576. with "maximum".
  1577. (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
  1578. 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
  1579. * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
  1580. forward declaration.
  1581. * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
  1582. (add_upper_bounds_from_estimated_nit): New.
  1583. (build_loop_iteration_domains): Use it.
  1584. 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
  1585. * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
  1586. 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
  1587. PR middle-end/43306
  1588. * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
  1589. should be an INTEGER_CST. Also handle CASE_CONVERT.
  1590. * gcc.dg/graphite/pr43306.c: New.
  1591. 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
  1592. * graphite.c (graphite_initialize): To bound the number of bbs per
  1593. function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
  1594. * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
  1595. * doc/invoke.texi: Document it.
  1596. 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
  1597. * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
  1598. * graphite-sese-to-poly.h (build_poly_scop): Same.
  1599. 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
  1600. * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
  1601. the number of parameters in the scop. Use as an upper bound
  1602. PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
  1603. * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
  1604. * doc/invoke.texi: Document it.
  1605. 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
  1606. * graphite-sese-to-poly.c (add_param_constraints): Use
  1607. lower_bound_in_type and upper_bound_in_type.
  1608. 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
  1609. * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
  1610. instead of unsigned_type_node.
  1611. 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
  1612. Reza Yazdani <reza.yazdani@amd.com>
  1613. PR middle-end/43065
  1614. * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
  1615. on pointer type parameters.
  1616. * gcc.dg/graphite/run-id-4.c: New.
  1617. 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
  1618. PR middle-end/43065
  1619. * gcc.dg/graphite/run-id-3.c: New.
  1620. 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
  1621. Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
  1622. * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
  1623. handle conversions from pointer to integers.
  1624. (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
  1625. induction variable, to be able to work with code generated by CLooG.
  1626. * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
  1627. (build_poly_scop): Bail out if we cannot codegen a loop.
  1628. 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
  1629. * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
  1630. code generation with gloog_error.
  1631. 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
  1632. * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
  1633. Call fold_convert on all the returned values.
  1634. (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
  1635. the type of the resulting expression.
  1636. 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
  1637. * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
  1638. ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
  1639. * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
  1640. 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
  1641. * graphite-dependences.c (map_into_dep_poly): Removed.
  1642. (dependence_polyhedron_1): Use combine_context_id_scat.
  1643. 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
  1644. * graphite-poly.h (struct poly_scattering): Add layout documentation.
  1645. (struct poly_bb): Same.
  1646. (combine_context_id_scat): New.
  1647. 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
  1648. PR middle-end/42326
  1649. * sese.c (name_defined_in_loop_p): Return false for default
  1650. definitions.
  1651. * gcc.dg/graphite/pr42326.c: New.
  1652. 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
  1653. * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
  1654. and clean up the logic.
  1655. 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
  1656. * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
  1657. early return.
  1658. 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
  1659. PR middle-end/43083
  1660. * graphite-scop-detection.c (create_single_exit_edge): Move
  1661. the call to find_single_exit_edge to....
  1662. (create_sese_edges): ...here. Don't handle multiple edges
  1663. exiting the function.
  1664. (build_graphite_scops): Don't handle multiple edges
  1665. exiting the function.
  1666. * gcc.dg/graphite/pr43083.c: New.
  1667. 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
  1668. PR middle-end/43097
  1669. * sese.c (get_rename): Assert that old_name is an SSA_NAME.
  1670. (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
  1671. * gfortran.dg/graphite/pr43097.f: New.
  1672. 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
  1673. Manuel López-Ibáñez <manu@gcc.gnu.org>
  1674. PR middle-end/43140
  1675. * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
  1676. 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
  1677. PR middle-end/43026
  1678. * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
  1679. * g++.dg/graphite/pr43026.C: New.
  1680. 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
  1681. * Merge from mainline (154736:156693).
  1682. 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
  1683. PR middle-end/43012
  1684. * gcc.dg/graphite/pr43012.c: New.
  1685. 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
  1686. * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
  1687. 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
  1688. * g++.dg/graphite/pr42930.C: New.
  1689. 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
  1690. PR middle-end/42930
  1691. * graphite-scop-detection.c (graphite_can_represent_scev): Call
  1692. graphite_can_represent_init for MULT_EXPR.
  1693. 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
  1694. PR middle-end/42914
  1695. PR middle-end/42530
  1696. * graphite-sese-to-poly.c (remove_phi): New.
  1697. (translate_scalar_reduction_to_array): Call remove_phi.
  1698. * gcc.dg/graphite/pr42530.c: New.
  1699. * gcc.dg/graphite/pr42914.c: New.
  1700. 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
  1701. PR middle-end/42771
  1702. * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
  1703. * graphite-clast-to-gimple.h (gloog): Update declaration.
  1704. * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
  1705. * graphite-poly.h (struct poly_bb): Add missing comments.
  1706. (struct scop): Add poly_scop_p field.
  1707. (POLY_SCOP_P): New.
  1708. * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
  1709. * graphite.c (graphite_transform_loops): Build the polyhedral
  1710. representation for each scop before code generation.
  1711. * sese.c (rename_variables_in_operand): Removed.
  1712. (rename_variables_in_expr): Return the renamed expression.
  1713. (rename_sese_parameters): New.
  1714. * sese.h (rename_sese_parameters): Declared.
  1715. * gcc.dg/graphite/pr42771.c: New.
  1716. 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
  1717. * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
  1718. return 0 from main.
  1719. * gcc.dg/graphite/block-1.c: Same.
  1720. * gcc.dg/graphite/block-3.c: Same.
  1721. * gcc.dg/graphite/block-4.c: Same.
  1722. * gcc.dg/graphite/block-5.c: Same.
  1723. * gcc.dg/graphite/block-6.c: Same.
  1724. * gcc.dg/graphite/block-7.c: Same.
  1725. * gcc.dg/graphite/interchange-0.c: Same.
  1726. * gcc.dg/graphite/interchange-1.c: Same.
  1727. * gcc.dg/graphite/interchange-10.c: Same.
  1728. * gcc.dg/graphite/interchange-11.c: Same.
  1729. * gcc.dg/graphite/interchange-12.c: Same.
  1730. * gcc.dg/graphite/interchange-2.c: Same.
  1731. * gcc.dg/graphite/interchange-3.c: Same.
  1732. * gcc.dg/graphite/interchange-4.c: Same.
  1733. * gcc.dg/graphite/interchange-5.c: Same.
  1734. * gcc.dg/graphite/interchange-6.c: Same.
  1735. * gcc.dg/graphite/interchange-7.c: Same.
  1736. * gcc.dg/graphite/interchange-8.c: Same.
  1737. * gcc.dg/graphite/interchange-9.c: Same.
  1738. * gcc.dg/graphite/interchange-mvt.c: Same.
  1739. 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
  1740. * gfortran.dg/graphite/id-19.f: New.
  1741. * gfortran.dg/graphite/pr14741.f90: New.
  1742. * gfortran.dg/graphite/pr41924.f90: New.
  1743. * gfortran.dg/graphite/run-id-2.f90: New.
  1744. 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
  1745. PR middle-end/42988
  1746. * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
  1747. to unknown_dependence.
  1748. (graphite_legal_transform_dr): Handle the unknown_dependence.
  1749. (graphite_carried_dependence_level_k): Same.
  1750. 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
  1751. * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
  1752. 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
  1753. Konrad Trifunovic <konrad.trifunovic@inria.fr>
  1754. PR middle-end/42637
  1755. * graphite-dependences.c (build_lexicographical_constraint): Return
  1756. a union of dependence polyhedra.
  1757. (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
  1758. * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
  1759. * gcc.dg/graphite/block-4.c: Same.
  1760. * gcc.dg/graphite/block-7.c: Same.
  1761. * gcc.dg/graphite/interchange-12.c: Same.
  1762. * gcc.dg/graphite/interchange-mvt.c: Same.
  1763. * gfortran.dg/graphite/interchange-1.f: XFAILed.
  1764. * gfortran.dg/graphite/interchange-3.f90: XFAILed.
  1765. * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
  1766. 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
  1767. * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
  1768. the execution check to FAIL. This testcase is miscompiled by Graphite
  1769. and the check should be re-enabled.
  1770. * gcc.dg/graphite/interchange-mvt.c: Same.
  1771. * gcc.dg/graphite/block-0.c: Same.
  1772. * gcc.dg/graphite/block-4.c: Same.
  1773. * gcc.dg/graphite/block-7.c: Same.
  1774. 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
  1775. * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
  1776. * gcc.dg/graphite/scop-0.c: Fix spaces.
  1777. * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
  1778. * gfortran.dg/graphite/block-2.f: Same.
  1779. * gfortran.dg/graphite/block-3.f90: Same.
  1780. * gfortran.dg/graphite/block-4.f90: Same.
  1781. * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
  1782. * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
  1783. 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
  1784. * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
  1785. PDDR_ORIGINAL_SCATTERING_P.
  1786. (pddr_is_empty): Rewritten.
  1787. (print_dependence_polyhedron_layout): New.
  1788. (print_pddr): New.
  1789. (debug_pddr): New.
  1790. (build_alias_set_powerset): Moved up.
  1791. (poly_drs_may_alias_p): Moved up.
  1792. (lexicographically_gt_p): Removed.
  1793. (build_lexicographically_gt_constraint): Renamed
  1794. build_lexicographical_constraint, reimplemented.
  1795. (dependence_polyhedron_1): Simplified parameters.
  1796. (dependence_polyhedron): Same. Keep along empty PDDRs
  1797. to make efficient use of the cache.
  1798. (reduction_dr_p): Compute the PBBs don't pass them as parameters.
  1799. (graphite_legal_transform_dr): Rewritten.
  1800. (graphite_legal_transform_bb): Pass fewer arguments to
  1801. graphite_legal_transform_dr.
  1802. (graphite_carried_dependence_level_k): Simplified implementation.
  1803. (dot_original_deps_stmt_1): Call dependence_polyhedron.
  1804. (dot_transformed_deps_stmt_1): Same.
  1805. (dot_original_deps): Same.
  1806. (dot_transformed_deps): Same.
  1807. * graphite-dependences.h (struct poly_ddr): Added a new field
  1808. original_scattering_p.
  1809. (PDDR_ORIGINAL_SCATTERING_P): New.
  1810. (print_pddr): Declared.
  1811. (debug_pddr): Declared.
  1812. * graphite-ppl.c: Clarify comment.
  1813. * sese.h (print_gimple_bb): Removed unused declaration.
  1814. (debug_gbb): Same.
  1815. 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
  1816. * g++.dg/graphite/graphite.exp: Rewritten.
  1817. * gcc.dg/graphite/graphite.exp: Rewritten.
  1818. * gfortran.dg/graphite/graphite.exp: Rewritten.
  1819. * gcc.dg/graphite/block-0.c: Added runtime test.
  1820. * gcc.dg/graphite/block-1.c: Same.
  1821. * gcc.dg/graphite/block-3.c: Same.
  1822. * gcc.dg/graphite/block-4.c: Same.
  1823. * gcc.dg/graphite/block-5.c: Same.
  1824. * gcc.dg/graphite/block-6.c: Same.
  1825. * gcc.dg/graphite/block-7.c: Same.
  1826. * gcc.dg/graphite/interchange-0.c: Same.
  1827. * gcc.dg/graphite/interchange-1.c: Same.
  1828. * gcc.dg/graphite/interchange-10.c: Same.
  1829. * gcc.dg/graphite/interchange-11.c: Same.
  1830. * gcc.dg/graphite/interchange-12.c: Same.
  1831. * gcc.dg/graphite/interchange-2.c: Same.
  1832. * gcc.dg/graphite/interchange-3.c: Same.
  1833. * gcc.dg/graphite/interchange-4.c: Same.
  1834. * gcc.dg/graphite/interchange-5.c: Same.
  1835. * gcc.dg/graphite/interchange-6.c: Same.
  1836. * gcc.dg/graphite/interchange-7.c: Same.
  1837. * gcc.dg/graphite/interchange-8.c: Same.
  1838. * gcc.dg/graphite/interchange-9.c: Same.
  1839. * gcc.dg/graphite/interchange-mvt.c: Same.
  1840. * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
  1841. 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
  1842. * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
  1843. background.
  1844. 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
  1845. * common.opt: Add -fgraphite-cloog-opts.
  1846. * graphite-clast-to-gimple.c (set_cloog_options): Same.
  1847. * opts.c (decode_options): Same.
  1848. 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
  1849. * gcc.dg/graphite/id-17.c: New.
  1850. * gcc.dg/graphite/pr41888.c: New.
  1851. * gcc.dg/graphite/scop-22.c: New.
  1852. * gfortran.dg/graphite/pr40982.f90: New.
  1853. 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
  1854. * graphite-dependences.c: Clarify comments.
  1855. (build_pddr): Add an extra parameter direction.
  1856. (graphite_legal_transform_dr): Use build_pddr.
  1857. (dot_original_deps_stmt_1): Update use of build_pddr.
  1858. (dot_transformed_deps_stmt_1): Same.
  1859. (dot_original_deps): Same.
  1860. (dot_transformed_deps): Same.
  1861. * gcc.dg/graphite/interchange-12.c: New.
  1862. * gcc.dg/graphite/block-7.c: New.
  1863. 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
  1864. * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
  1865. (pddr_transformed_scattering): Removed.
  1866. (graphite_legal_transform_dr): Use build_pddr.
  1867. (dot_original_deps_stmt_1): Same.
  1868. (dot_transformed_deps_stmt_1): Same.
  1869. (dot_original_deps): Same.
  1870. (dot_transformed_deps): Same.
  1871. 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
  1872. * graphite-dependences.c (lexicographically_gt_p): Add comments.
  1873. (build_lexicographically_gt_constraint): Same.
  1874. (dependence_polyhedron_1): Same.
  1875. (dependence_polyhedron): Same.
  1876. 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
  1877. * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
  1878. (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
  1879. (lexicographically_gt_p): Change type of direction to int.
  1880. (build_lexicographically_gt_constraint): Same.
  1881. (dependence_polyhedron_1): Same.
  1882. (dependence_polyhedron): Same.
  1883. (pddr_original_scattering): Use integers for direction.
  1884. (pddr_transformed_scattering): Same.
  1885. (graphite_legal_transform_dr): Same.
  1886. (graphite_carried_dependence_level_k): Same.
  1887. 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
  1888. * graphite-dependences.c (build_pairwise_constraint): Renamed
  1889. ppl_build_relation. Moved...
  1890. (dr_equality_constraints): Use ppl_build_relation.
  1891. (build_pairwise_scheduling_equality): Same.
  1892. (build_pairwise_scheduling_inequality): Same.
  1893. * graphite-ppl.c (ppl_build_relation): ...here.
  1894. * graphite-ppl.h (ppl_build_relation): Declared.
  1895. 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
  1896. PR middle-end/42681
  1897. * graphite-clast-to-gimple.c (gloog_error): New static variable.
  1898. (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
  1899. Set gloog_error when such an expression failed to be built.
  1900. (translate_clast): Early return when gloog_error is set.
  1901. (gloog): Clear gloog_error. When gloog_error is set, call
  1902. set_ifsese_condition to enable the original code. Return the status
  1903. of the code generation based on gloog_error.
  1904. * sese.c (set_ifsese_condition): New.
  1905. * sese.h (set_ifsese_condition): Declared.
  1906. * g++.dg/graphite/pr42681.C: New.
  1907. 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
  1908. PR middle-end/42732
  1909. * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
  1910. rename_nb_iterations.
  1911. * sese.c (rename_variables_in_operand): New.
  1912. (rename_variables_in_expr): New.
  1913. (rename_nb_iterations): New.
  1914. (sese_adjust_liveout_phis): Update the rename_map.
  1915. * sese.h (rename_nb_iterations): Declared.
  1916. * tree-scalar-evolution.c (scev_reset_htab): New.
  1917. (scev_reset): Call scev_reset_htab.
  1918. * tree-scalar-evolution.h (scev_reset_htab): Declared.
  1919. * gfortran.dg/graphite/pr42732.f: New.
  1920. 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
  1921. PR middle-end/42393
  1922. * graphite-clast-to-gimple.c: Fix formatting.
  1923. * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
  1924. (expr_defined_in_loop_p): New.
  1925. (add_loop_exit_phis): Also handle full expressions: remove from
  1926. the rename_map the expressions defined in the loop that we're closing.
  1927. * gfortran.dg/graphite/pr42393-1.f90: New.
  1928. * gfortran.dg/graphite/pr42393.f90: Add new flags
  1929. -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
  1930. make this testcase useful in the Graphite branch.
  1931. 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
  1932. * graphite-scop-detection.c (exclude_component_ref): Removed.
  1933. (is_simple_operand): Removed.
  1934. (stmt_simple_for_scop_p): Remove use of is_simple_operand.
  1935. 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
  1936. PR middle-end/42221
  1937. * sese.c (expand_scalar_variables_expr): Follow the SSA links into
  1938. the array indexing of ADDR_EXPRs.
  1939. * gcc.dg/graphite/pr42221.c: New.
  1940. 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
  1941. PR middle-end/42521
  1942. * graphite.c (graphite_finalize): Call scev_reset.
  1943. (graphite_transform_loops): Do not call scev_reset between the code
  1944. generation of scops.
  1945. * gcc.dg/graphite/pr42521.c: New.
  1946. 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
  1947. * graphite-interchange.c (memory_stride_in_loop): Renamed
  1948. pdr_stride_in_loop.
  1949. (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
  1950. (memory_strides_in_loop): Memoize the memory strides per loop.
  1951. (lst_interchange_profitable_p): Do not initialize to zero the memory
  1952. strides.
  1953. * graphite-poly.h (struct lst): Add a field memory_strides.
  1954. (LST_LOOP_MEMORY_STRIDES): New.
  1955. (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
  1956. (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
  1957. 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
  1958. * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
  1959. memory_strides_in_loop. Gather memory strides on a whole loop.
  1960. (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
  1961. (lst_interchange_profitable_p): Removed.
  1962. (lst_try_interchange_loops): Call lst_interchange_profitable_p.
  1963. 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
  1964. Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
  1965. * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
  1966. (translate_clast_for, translate_clast_guard, translate_clast, gloog):
  1967. Remove context_loop and level.
  1968. 2010-01-07 Richard Guenther <rguenther@suse.de>
  1969. PR tree-optimization/42641
  1970. * sese.c (rename_map_elt_info): Use the SSA name version, do
  1971. not hash pointers.
  1972. 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
  1973. * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
  1974. blocked" only when both the strip mine and the interchange have
  1975. been applied.
  1976. * gcc.dg/graphite/block-2.c: Removed.
  1977. * gcc.dg/graphite/block-3.c: Add scan pattern.
  1978. * gcc.dg/graphite/block-4.c: Same.
  1979. * gcc.dg/graphite/block-5.c: Same.
  1980. * gcc.dg/graphite/block-6.c: Same.
  1981. 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
  1982. * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
  1983. before allocating a new one.
  1984. (copy_renames): Check that slot is not NULL.
  1985. (mark_bb_with_pbb): Same.
  1986. (compute_cloog_iv_types_1): Same.
  1987. * graphite-interchange.c (lst_perfect_nestify): Free the before,
  1988. nest, and after LSTs.
  1989. (lst_try_interchange_loops): Same.
  1990. 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
  1991. PR middle-end/42178
  1992. * graphite-interchange.c (lst_try_interchange_loops): Do not return
  1993. the before, nest, and after LSTs.
  1994. (lst_try_interchange): Removed.
  1995. (lst_interchange_select_inner): Do not iterate over the LSTs if they
  1996. were modified.
  1997. (lst_interchange_select_outer): Apply interchange on the outer loop
  1998. until there are no more changes in the inner loops.
  1999. 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
  2000. Revert patch fixing PR middle-end/42221.
  2001. 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
  2002. PR middle-end/42180
  2003. * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
  2004. GIMPLE_CALL.
  2005. * gfortran.dg/graphite/pr42180.f90: Add compile flags.
  2006. 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
  2007. PR middle-end/42180
  2008. * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
  2009. that contain only one statement.
  2010. * gfortran.dg/graphite/pr42180.f90: New.
  2011. 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
  2012. PR middle-end/42393
  2013. * gfortran.dg/graphite/pr42393.f90: New.
  2014. 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
  2015. PR middle-end/42186
  2016. * gfortran.dg/graphite/pr42186.f90: New.
  2017. 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
  2018. PR middle-end/42205
  2019. * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
  2020. Insert the reduction copy in the same block as the phi node.
  2021. (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
  2022. * gcc.dg/graphite/pr42205-1.c: New.
  2023. * gcc.dg/graphite/pr42205-2.c: New.
  2024. 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
  2025. PR middle-end/42221
  2026. * sese.c (expand_scalar_variables_expr): Follow the SSA links into
  2027. the array indexing of ADDR_EXPRs.
  2028. * gcc.dg/graphite/pr42221.c: New.
  2029. 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
  2030. PR middle-end/42178
  2031. PR middle-end/42334
  2032. * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
  2033. index. Call lst_interchange_select_inner only once.
  2034. (lst_interchange_select_inner): Update use of lst_try_interchange.
  2035. (lst_interchange_select_outer): Update.
  2036. 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
  2037. PR middle-end/42178
  2038. PR middle-end/42334
  2039. * graphite-interchange.c (lst_try_interchange): Do not increment the
  2040. the OUTER index when there is no AFTER kernel. Do not increment the
  2041. OUTER index for after processing the AFTER kernel.
  2042. (lst_interchange_select_inner): Call lst_try_interchange only on loops.
  2043. (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
  2044. index. Do not pass to lst_interchange_select_inner the OUTER index.
  2045. (scop_do_interchange): Update use of lst_interchange_select_outer.
  2046. * gfortran.dg/graphite/graphite.exp
  2047. (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
  2048. * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
  2049. the graphite dump file.
  2050. * gfortran.dg/graphite/interchange-2.f: Same.
  2051. * gfortran.dg/graphite/pr42334-1.f: New.
  2052. 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
  2053. PR middle-end/42178
  2054. PR middle-end/42334
  2055. * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
  2056. that are empty.
  2057. (lst_do_interchange_1): Renamed lst_interchange_select_inner.
  2058. (lst_try_interchange): Reimplemented.
  2059. (lst_interchange_select_inner): Same.
  2060. (lst_do_interchange): Renamed lst_interchange_select_outer.
  2061. Reimplemented.
  2062. (scop_do_interchange): Update use of lst_interchange_select_outer.
  2063. * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
  2064. * gcc.dg/graphite/block-0.c: Un-XFAILed.
  2065. * gcc.dg/graphite/pr42211.c: New.
  2066. * gfortran.dg/graphite/pr42334.f90: New.
  2067. 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
  2068. PR middle-end/42181
  2069. * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
  2070. carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
  2071. * gfortran.dg/graphite/pr42181.f90: New.
  2072. 2009-12-12 Sebastian Pop <sebpop@gmail.com>
  2073. PR middle-end/42284
  2074. * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
  2075. insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
  2076. (detect_commutative_reduction_arg): Simplified.
  2077. (detect_commutative_reduction): Early return when the argument of
  2078. the close phi is not of an SSA_NAME.
  2079. * gcc.dg/graphite/pr42284.c: New.
  2080. 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
  2081. * dbgcnt.def (graphite_scop): New counter.
  2082. * graphite.c: Include dbgcnt.h
  2083. (graphite_transform_loops): Use new counter to limit transformations.
  2084. 2009-12-08 Sebastian Pop <sebpop@gmail.com>
  2085. PR middle-end/42285
  2086. * graphite-scop-detection.c (graphite_can_represent_init): Also
  2087. handle more complex MULT_EXPRs containing parameters by recursion
  2088. on the structure.
  2089. * gfortran.dg/graphite/pr42285.f90: New.
  2090. 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
  2091. * g++.dg/graphite/pr42130.C: Fix type.
  2092. 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
  2093. * g++.dg/graphite/pr42130.C: Correct testcase.
  2094. 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
  2095. * Merge from mainline (154493:154734).
  2096. 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
  2097. * Merge from mainline (151362:154491).
  2098. 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
  2099. * graphite-clast-to-gimple.c (try_mark_loop_parallel,
  2100. graphite_create_new_loop_guard, translate_clast_for): Fix comments.
  2101. 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
  2102. PR middle-end/42130
  2103. * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
  2104. translate_clast_for_loop): New.
  2105. (translate_clast_for): Add a condition around the loop, to do not
  2106. execute loops with zero iterations.
  2107. * g++.dg/graphite/pr42130.C: New.
  2108. * gcc.dg/graphite/pr35356-2.c: Adapt.
  2109. 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
  2110. * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
  2111. (translate_clast_for, translate_clast_guard, translate_clast, gloog):
  2112. Remove context_loop and level.
  2113. 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
  2114. * graphite-clast-to-gimple.c (translate_clast_user,
  2115. translate_clast_for, translate_clast_guard): Simplify and move common
  2116. elements to translate_clast().
  2117. (translate_clast): Simplify and get common elements.
  2118. 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
  2119. * graphite-clast-to-gimple.c (translate_clast_user,
  2120. translate_clast_for, translate_clast_guard): Split out of
  2121. translate_clast.
  2122. 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
  2123. * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
  2124. clast_name_to_index, save_clast_name_index, debug_clast_name_index,
  2125. debug_clast_name_indexes_1, debug_clast_name_indexes,
  2126. clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
  2127. (clast_name_to_gcc, clast_to_gcc_expression,
  2128. clast_to_gcc_expression_red, gcc_type_for_clast_expr,
  2129. gcc_type_for_clast_eq, graphite_translate_clast_equation,
  2130. graphite_create_guard_cond_expr, graphite_create_new_loop,
  2131. translate_clast): Add params_index.
  2132. (initialize_cloog_names): Create parameter strings from scratch, do
  2133. not reference other strings.
  2134. (create_params_index): New.
  2135. (gloog): Initialize params_index.
  2136. * graphite-scop-detection (free_scops_1): Removed.
  2137. (limit_scops): Use normal free_scops.
  2138. * graphite-sese-to-poly.c (save_var_names): Removed.
  2139. (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
  2140. and SESE_PARAMS_INDEX.
  2141. * sese.c (new_sese, free_sese): Dito.
  2142. * sese.h (struct sese): Remove params_index, params_names.
  2143. (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
  2144. 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
  2145. Revert the following patch from 2009-09-14:
  2146. * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
  2147. tree-scalar-evolution.h, and then tree-data-ref.h.
  2148. * graphite-clast-to-gimple.c: Same.
  2149. * graphite-dependences.c: Same.
  2150. * graphite-interchange.c: Same.
  2151. * graphite-poly.c: Same.
  2152. * graphite-scop-detection.c: Same.
  2153. * graphite-sese-to-poly.c: Same.
  2154. * graphite.c: Same.
  2155. * lambda-code.c: Same.
  2156. * matrix-reorg.c: Same.
  2157. * tree-data-ref.c: Same.
  2158. * tree-if-conv.c: Same.
  2159. * tree-loop-distribu: Same.: Same.
  2160. * tree-loop-linear.c: Same.
  2161. * tree-parloops.c: Same.
  2162. * tree-predcom.c: Same.
  2163. * tree-vect-patterns.c: Same.
  2164. 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
  2165. Revert patch from 2009-09-14.
  2166. * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
  2167. passes at -O1 and below.
  2168. 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
  2169. PR middle-end/40281
  2170. * gcc.dg/graphite/pr40281.c: New.
  2171. * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
  2172. evolutions should not variate in inner loops.
  2173. 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
  2174. PR middle-end/42050
  2175. * gfortran.dg/graphite/pr42050.f90: New.
  2176. 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
  2177. * graphite-interchange.c (memory_strides_in_loop_depth): New.
  2178. (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
  2179. 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
  2180. * graphite-blocking.c (scop_do_block): New.
  2181. * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
  2182. * graphite-poly.h (scop_do_block): Declared.
  2183. 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
  2184. * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
  2185. depth is the loop nesting depth in the LST. Call psct_dynamic_dim
  2186. to transform depth into the time_depth before calling
  2187. pbb_number_of_iterations_at_time.
  2188. (lst_do_strip_mine): Use a scalar variable instead of recomputing
  2189. lst_depth.
  2190. 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
  2191. Reverted the patch for "scattering permutations" from 2009-10-28.
  2192. * graphite-poly.c (print_permutation): New.
  2193. (debug_permutation): New.
  2194. (new_poly_bb): Initialize PBB_PERMUTATION.
  2195. (free_poly_bb): Free PBB_PERMUTATION.
  2196. * graphite-poly.h (pbb_permutation_elt_p): Declared.
  2197. (struct pbb_permutation_elt): New.
  2198. (PBB_PERMUTATION_ELT_STRIDE): New.
  2199. (PBB_PERMUTATION_ELT_STRIDED_P): New.
  2200. (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
  2201. (new_pbb_permutation_elt): New.
  2202. (pbb_permutation_elt_free): New.
  2203. (struct poly_bb): Add field permutation.
  2204. (PBB_PERMUTATION): New.
  2205. (print_permutation): Declared.
  2206. (debug_permutation): Declared.
  2207. 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  2208. * graphite-interchange.c (build_partial_difference): New.
  2209. (memory_stride_in_loop): Refactored the computation of
  2210. equality constraints into build_partial_difference function.
  2211. Added support for debugging stride computations.
  2212. 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
  2213. * graphite-clast-to-gimple.c (gloog): Free if_region,
  2214. if_region->true_region, and if_region->region.
  2215. * sese.c (if_region_set_false_region): Free if_region->false_region.
  2216. (create_if_region_on_edge): Do not use GGC_NEW.
  2217. (move_sese_in_condition): Remove useless initialization.
  2218. 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
  2219. * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
  2220. for the loops created by the loop distribution. Do not modify the
  2221. input LSTs.
  2222. (lst_try_interchange_loops): Same. Use a temporary LST for the
  2223. transformed schedule. Call lst_update_scattering before data
  2224. dependence analysis.
  2225. (lst_try_interchange): Pass an extra parameter INDEX.
  2226. (lst_do_interchange_1): New.
  2227. (lst_do_interchange): Call lst_do_interchange_1.
  2228. (scop_do_interchange): Call lst_update_scattering.
  2229. * graphite-poly.c (apply_poly_transforms): Do not call
  2230. lst_update_scattering.
  2231. * graphite-poly.h (lst_pred): New.
  2232. (lst_succ): New.
  2233. (lst_find_first_pbb): Return NULL when not found.
  2234. (lst_empty_p): New.
  2235. (lst_insert_in_sequence): Allow LST1 to be NULL.
  2236. (lst_replace): New.
  2237. (lst_substitute_3): New.
  2238. * gcc.dg/graphite/interchange-1.c: XFail.
  2239. * gcc.dg/graphite/interchange-8.c: XFail.
  2240. * gcc.dg/graphite/interchange-11.c: XFail.
  2241. 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
  2242. * graphite-interchange.c (lst_perfectly_nested_p): New.
  2243. (lst_perfect_nestify): New.
  2244. (lst_try_interchange_loops): Call store_lst_schedule,
  2245. lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
  2246. (scop_do_interchange): Avoid redundant legality test.
  2247. Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
  2248. * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
  2249. * graphite-poly.h (psct_static_dim): New.
  2250. (lst_dewey_number_at_depth): New.
  2251. (lst_find_pbb): Restructured.
  2252. (lst_find_first_pbb): Restructured.
  2253. (lst_find_last_pbb): New.
  2254. (lst_contains_p): New.
  2255. (lst_contains_pbb): New.
  2256. (lst_create_nest): New.
  2257. (lst_remove_from_sequence): New.
  2258. (pbb_update_scattering): New.
  2259. (lst_update_scattering_under): New.
  2260. (lst_update_scattering_seq): New.
  2261. (lst_update_scattering): New.
  2262. (lst_insert_in_sequence): New.
  2263. (lst_distribute_lst): New.
  2264. (lst_remove_all_before_including_pbb): New.
  2265. (lst_remove_all_before_excluding_pbb): New.
  2266. 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
  2267. * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
  2268. get_loop_exit_edges.
  2269. 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
  2270. * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
  2271. 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  2272. * graphite-poly.c (print_permutation): New.
  2273. (debug_permutation): New.
  2274. (new_poly_bb): Initialize PBB_PERMUTATION.
  2275. (free_poly_bb): Free PBB_PERMUTATION.
  2276. * graphite-poly.h (pbb_permutation_elt_p): Declared.
  2277. (struct pbb_permutation_elt): New.
  2278. (PBB_PERMUTATION_ELT_STRIDE): New.
  2279. (PBB_PERMUTATION_ELT_STRIDED_P): New.
  2280. (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
  2281. (new_pbb_permutation_elt): New.
  2282. (pbb_permutation_elt_free): New.
  2283. (struct poly_bb): Add field permutation.
  2284. (PBB_PERMUTATION): New.
  2285. (print_permutation): Declared.
  2286. (debug_permutation): Declared.
  2287. 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
  2288. * graphite-clast-to-gimple.c (gloog): Do not call
  2289. sese_reset_aux_in_loops.
  2290. * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
  2291. extra argument for domains. Do not use loop->aux.
  2292. (build_scop_iteration_domain): Initialize and free domains, pass it
  2293. to build_loop_iteration_domains and extract the information from
  2294. domains. Do not use loop->aux.
  2295. * sese.c (sese_reset_aux_in_loops): Removed.
  2296. * sese.h (sese_reset_aux_in_loops): Removed.
  2297. 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
  2298. * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
  2299. (dependency_in_loop_p): Same.
  2300. (translate_clast): Do not use loop->aux. Initialize
  2301. loop->can_be_parallel.
  2302. (mark_loops_parallel): Removed.
  2303. * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
  2304. * graphite.c (free_aux_in_new_loops): Removed.
  2305. (graphite_finalize): Do not call free_aux_in_new_loops.
  2306. (graphite_transform_loops): Do not call mark_loops_parallel.
  2307. 2009-10-26 Li Feng <nemokingdom@gmail.com>
  2308. * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
  2309. (translate_clast): Pass an extra parameter LEVEL.
  2310. Call get_scattering_level.
  2311. * graphite-clast-to-gimple.h (get_scattering_level): New.
  2312. 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
  2313. * cfgloop.c (alloc_loop): Initialize loop->single_iv.
  2314. * cfgloop.h (struct loop): New field single_iv.
  2315. * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
  2316. loop->aux anymore: use loop->single_iv.
  2317. (graphite_loop_normal_form): Moved...
  2318. (build_graphite_loop_normal_form): Removed.
  2319. (gloog): Do not call build_graphite_loop_normal_form.
  2320. (free_aux_in_new_loops): Moved...
  2321. (mark_loops_parallel): Restructure.
  2322. * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
  2323. * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
  2324. (scop_canonicalize_loops): New.
  2325. (build_poly_scop): Call scop_canonicalize_loops.
  2326. * graphite.c (free_aux_in_new_loops): ...here.
  2327. 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
  2328. * g++.dg/graphite/graphite.exp: Add the same rules as in
  2329. gcc.dg/graphite/graphite.exp.
  2330. 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
  2331. * g++.dg/graphite/id-1.C: New.
  2332. 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
  2333. * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
  2334. argument base_name.
  2335. (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
  2336. (rewrite_phi_out_of_ssa): Same.
  2337. (rewrite_cross_bb_scalar_deps): Same.
  2338. (translate_scalar_reduction_to_array): Same.
  2339. 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
  2340. * graphite-sese-to-poly.c (build_scop_drs): Disable call to
  2341. dump_alias_graphs.
  2342. 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
  2343. * graphite-sese-to-poly.c (dump_alias_graphs): New.
  2344. (build_scop_drs): Call dump_alias_graphs.
  2345. 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
  2346. * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
  2347. SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
  2348. (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
  2349. SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
  2350. * graphite-poly.h (free_lst): New.
  2351. (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
  2352. (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
  2353. 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
  2354. * graphite-poly.h (struct scop): Add a field saved_schedule.
  2355. (SCOP_SAVED_SCHEDULE): New.
  2356. (store_lst_schedule): New.
  2357. (restore_lst_schedule): New.
  2358. (store_scattering): Call store_lst_schedule.
  2359. (restore_scattering): Call restore_lst_schedule.
  2360. 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
  2361. * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
  2362. (pdr_add_alias_set): Same.
  2363. (build_poly_dr): Same.
  2364. (build_alias_set_optimal_p): Same.
  2365. (build_base_obj_set_for_drs): Same. Do not store the result of
  2366. graphds_dfs.
  2367. 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
  2368. * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
  2369. all_components_are_cliques to 1.
  2370. 2009-10-20 Li Feng <nemokingdom@gmail.com>
  2371. * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
  2372. the new structure.
  2373. (pdr_add_alias_set): Update retrieving alias_set_num.
  2374. (build_poly_dr): Update retrieving dr_base_object_set.
  2375. (partition_drs_to_sets): Remove.
  2376. (build_alias_set_optimal_p): New.
  2377. (build_alias_set_for_drs): Rename.
  2378. (build_scop_drs): Update.
  2379. * graphite-sese-to-poly.h (struct base_alias_pair): New.
  2380. (ALIAS_SET_INDEX): Remove.
  2381. (BASE_OBJECT_SET_INDEX): Remove.
  2382. 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
  2383. * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
  2384. 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
  2385. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
  2386. loop upper bounds for 1-element arrays at end of structures.
  2387. * tree-flow.h (array_at_struct_end_p): Declared.
  2388. * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
  2389. 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
  2390. * g++.dg/graphite/pr41305.C: New.
  2391. 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
  2392. * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
  2393. construction of parameter constraints from loop iteration analysis.
  2394. * gcc.dg/graphite/run-id-2.c: New test.
  2395. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2396. * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
  2397. and new_cstr.
  2398. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2399. * graphite-dependences.c (dependence_polyhedron_1): Remove
  2400. unused gdim dimensions from the DDR polyhedron.
  2401. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2402. * graphite-dependences.c (pddr_transformed_scattering): New.
  2403. (dot_original_deps_stmt_1): New.
  2404. (dot_transformed_deps_stmt_1): New.
  2405. (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
  2406. dot_transformed_deps_stmt_1.
  2407. (dot_original_deps): New.
  2408. (dot_transformed_deps): New.
  2409. (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
  2410. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2411. * graphite-dependences.c (reduction_dr_1): Remove wrong
  2412. assert: reduction BBs can have multiple reduction writes
  2413. to memory. interchange-3.f90 is an example.
  2414. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2415. * gfortran.dg/graphite/interchange-3.f90: New.
  2416. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2417. * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
  2418. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2419. * graphite-dependences.c (dependence_polyhedron_1): Add the
  2420. context to the dependence polyhedron.
  2421. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2422. * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
  2423. PBB_PDR_DUPLICATES_REMOVED.
  2424. (new_poly_bb): Same.
  2425. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2426. * graphite-sese-to-poly.c (find_scop_parameters): Initialize
  2427. SCOP_CONTEXT.
  2428. (build_loop_iteration_domains): Extract bounds on parameters
  2429. based on the data size.
  2430. (build_scop_context): Do not initialize SCOP_CONTEXT;
  2431. add new constraints.
  2432. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2433. * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
  2434. * graphite-ppl.h (graphite-ppl.h): Declared.
  2435. 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
  2436. * graphite-ppl.c (ppl_print_linear_expr): New.
  2437. (debug_ppl_linear_expr): New.
  2438. * graphite-ppl.h (ppl_print_linear_expr): Declared.
  2439. (debug_ppl_linear_expr): Declared.
  2440. 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
  2441. * graphite-interchange.c: Fix comments.
  2442. * gcc.dg/graphite/block-1.c: Fix comments.
  2443. 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
  2444. * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
  2445. * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
  2446. 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
  2447. Reapply the patch from Alexander Monakov that disappeared during
  2448. the last merges from trunk.
  2449. 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
  2450. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
  2451. for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
  2452. 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
  2453. * graphite-interchange.c (memory_stride_in_loop): The depth
  2454. argument corresponds to a dynamic time dimension, so use
  2455. psct_dynamic_dim to refer to the transformed scattering dimension.
  2456. 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
  2457. * graphite-interchange.c (memory_stride_in_loop): Fix comments.
  2458. 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
  2459. * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
  2460. root of the LST.
  2461. * graphite-interchange.c (lst_do_interchange): Avoid interchanging
  2462. the root of the LST.
  2463. * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
  2464. fake loop.
  2465. (print_lst): Print the root of LST in a different format.
  2466. * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
  2467. 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
  2468. * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
  2469. 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
  2470. * doc/passes.texi: Document the Graphite infrastructure.
  2471. 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
  2472. * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
  2473. (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
  2474. and check the SSA representation.
  2475. * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
  2476. 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
  2477. * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
  2478. 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
  2479. * gcc.dg/graphite/interchange-11.c: New.
  2480. 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
  2481. * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
  2482. 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
  2483. * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
  2484. Add -fno-loop-strip-mine and -fno-loop-interchange.
  2485. (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
  2486. -fno-loop-strip-mine.
  2487. * gfortran.dg/graphite/graphite.exp: Same.
  2488. 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
  2489. * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
  2490. Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
  2491. (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
  2492. DEFAULT_FLAGS_GRAPHITE_IDENTITY.
  2493. (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
  2494. DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
  2495. (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
  2496. DEFAULT_FLAGS_GRAPHITE_SCOP.
  2497. (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
  2498. (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
  2499. 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
  2500. * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
  2501. 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  2502. Sebastian Pop <sebastian.pop@amd.com>
  2503. * graphite-interchange.c (build_linearized_memory_access): Pass an
  2504. offset as parameter.
  2505. (memory_stride_in_loop): Include transform scattering in the
  2506. access functions to be able to querry the strides in the
  2507. transformed loops.
  2508. (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
  2509. not the psct_iterator_dim.
  2510. 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
  2511. * graphite-blocking.c (pbb_do_strip_mine): Removed.
  2512. (lst_do_strip_mine_loop): New.
  2513. (lst_do_strip_mine): New.
  2514. (scop_do_strip_mine): Call lst_do_strip_mine.
  2515. * graphite-poly.h (lst_add_loop_under_loop): New.
  2516. (lst_find_first_pbb): New.
  2517. 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
  2518. * graphite-poly.c (loop_to_lst): Fix LST creation.
  2519. 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
  2520. * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
  2521. sizeof(unsigned long) to make it run on 32bit systems.
  2522. 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
  2523. * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
  2524. SEGFAULT on 32bit.
  2525. 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
  2526. * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
  2527. Comment.
  2528. (write_alias_graph_to_ascii_dot): New.
  2529. (write_alias_graph_to_ascii_ecc): Ditto.
  2530. (partition_drs_to_sets): Add testing of optimality of current method
  2531. which assigns alias numbers according to DFS Comopnent number. used
  2532. as heuristic for the upcoming ECC algorithm.
  2533. (build_scop_drs): Write to file also with the ecc and dot format.
  2534. 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
  2535. * gfortran.dg/graphite/interchange-1.f: XFail.
  2536. 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
  2537. * graphite.c (graphite_initialize): Do not handle functions with
  2538. more than 100 basic blocks.
  2539. 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
  2540. * graphite-blocking.c (pbb_do_strip_mine): Use
  2541. PARAM_LOOP_BLOCK_TILE_SIZE.
  2542. 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
  2543. * graphite-poly.c (dot_lst_1): New.
  2544. (dot_lst): New.
  2545. * graphite-poly.h (dot_lst): Declared.
  2546. 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
  2547. * graphite-dependences.c (dot_deps_stmt_1): New.
  2548. (dot_deps_stmt): New.
  2549. * graphite-dependences.h (dot_deps_stmt): Declared.
  2550. 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
  2551. * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
  2552. not replace cross BB scalar dependences ending on PHI nodes.
  2553. (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
  2554. 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
  2555. * graphite-poly.c (apply_poly_transforms): Implement the high
  2556. level driver for flag_loop_block.
  2557. * opts.c (decode_options): Enable flag_loop_block at -O2.
  2558. * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
  2559. flag_loop_block.
  2560. * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
  2561. -floop-block.
  2562. * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
  2563. Add -floop-block.
  2564. 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
  2565. * graphite-poly.h (lst_find_pbb): New.
  2566. (find_lst_loop): New.
  2567. 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
  2568. * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
  2569. * graphite-poly.h (struct scop): Remove dep_graph field.
  2570. (SCOP_DEP_GRAPH): Removed.
  2571. 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
  2572. * graphite-poly.h (copy_lst): Do full copy of LST.
  2573. 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
  2574. * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
  2575. when the loop stride is zero.
  2576. * gcc.dg/graphite/id-16.c: New.
  2577. 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
  2578. * graphite-dependences.c (reduction_dr_1): New.
  2579. (reduction_dr_p): New.
  2580. (graphite_legal_transform_dr): Call reduction_dr_p.
  2581. (reduction_ddr): Renamed reduction_ddr_p.
  2582. * graphite-poly.h (same_pdr_p): New.
  2583. (number_of_write_pdrs): New.
  2584. * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
  2585. (split_reduction_stmt): Do not split reduction statements
  2586. when there are no writes to memory.
  2587. (translate_scalar_reduction_to_array_for_stmt): Insert the
  2588. memory reduction statement just after the scalar reduction statement.
  2589. * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
  2590. Un-XFAIL-ed.
  2591. * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
  2592. * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
  2593. 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
  2594. * graphite-interchange.c (lst_apply_interchange): New.
  2595. (lst_interchange_profitable_p): New.
  2596. (lst_try_interchange_loops): New.
  2597. (lst_try_interchange): New.
  2598. (lst_do_interchange): New.
  2599. (pbb_do_interchange): Removed.
  2600. (scop_do_interchange): Call lst_do_interchange.
  2601. 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
  2602. * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
  2603. SCOP_TRANSFORMED_SCHEDULE.
  2604. (loop_to_lst): New.
  2605. (scop_to_lst): New.
  2606. (print_lst): New.
  2607. (debug_lst): New.
  2608. * graphite-poly.h (lst_p): New.
  2609. (struct lst): New.
  2610. (LST_LOOP_P): New.
  2611. (LST_LOOP_FATHER): New.
  2612. (LST_PBB): New.
  2613. (LST_SEQ): New.
  2614. (scop_to_lst): Declared.
  2615. (print_lst): Declared.
  2616. (debug_lst): Declared.
  2617. (new_lst_loop): New.
  2618. (new_lst_stmt): New.
  2619. (copy_lst): New.
  2620. (lst_depth): New.
  2621. (lst_dewey_number): New.
  2622. (struct scop): Add original_schedule and transformed_schedule fields.
  2623. (SCOP_ORIGINAL_SCHEDULE): New.
  2624. (SCOP_TRANSFORMED_SCHEDULE): New.
  2625. * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
  2626. 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
  2627. * graphite-dependences.c (reduction_ddr): New.
  2628. (graphite_legal_transform_bb): Call reduction_ddr.
  2629. * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
  2630. Initialize PBB_IS_REDUCTION.
  2631. * graphite-poly.h (struct poly_bb): New bool field is_reduction.
  2632. (PBB_IS_REDUCTION): New.
  2633. (new_poly_bb): Update declaration.
  2634. * graphite-scop-detection.h (build_scop_bbs): Removed.
  2635. (nb_reductions_in_loop): Removed.
  2636. * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
  2637. parameter for reductions.
  2638. (try_generate_gimple_bb): Update call to new_poly_bb.
  2639. (build_scop_bbs_1): Same.
  2640. (build_scop_bbs): Same.
  2641. (gsi_for_phi_node): New.
  2642. (scalar_close_phi_node_p): Remove gcc_assert.
  2643. (split_reduction_stmt): New.
  2644. (is_reduction_operation_p): New.
  2645. (phi_contains_arg): New.
  2646. (follow_ssa_with_commutative_ops): New.
  2647. (detect_commutative_reduction_arg): New.
  2648. (detect_commutative_reduction_assign): New.
  2649. (follow_inital_value_to_phi): New.
  2650. (edge_initial_value_for_loop_phi): New.
  2651. (initial_value_for_loop_phi): New.
  2652. (detect_commutative_reduction): New.
  2653. (translate_scalar_reduction_to_array_for_stmt): New.
  2654. (insert_copyout): New.
  2655. (insert_copyin): New.
  2656. (translate_scalar_reduction_to_array): New.
  2657. (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
  2658. (rewrite_commutative_reductions_out_of_ssa_loop): New.
  2659. (rewrite_commutative_reductions_out_of_ssa): New.
  2660. (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
  2661. * sese.h (split_region_for_bb): New.
  2662. * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
  2663. * gcc.dg/graphite/interchange-1.c: Fix format.
  2664. * gcc.dg/graphite/interchange-10.c: New.
  2665. 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
  2666. * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
  2667. buggy assert.
  2668. 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
  2669. * graphite-sese-to-poly.c (scev_analyzable_p): New.
  2670. (rewrite_cross_bb_scalar_dependence): New.
  2671. (rewrite_cross_bb_scalar_deps): New.
  2672. (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
  2673. Call rewrite_cross_bb_scalar_deps.
  2674. 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
  2675. * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
  2676. (insert_out_of_ssa_copy): Directly use gsi_after_labels and
  2677. gsi_for_stmt.
  2678. 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
  2679. * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
  2680. * graphite-interchange.c (pbb_do_interchange): Same.
  2681. * graphite-poly.c (print_scattering_function): Same.
  2682. (debug_pdrs): Same.
  2683. * graphite-poly.h (pbb_loop): New.
  2684. * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
  2685. 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
  2686. * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
  2687. 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
  2688. * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
  2689. so don't pass a pointer to it.
  2690. (build_alias_set_for_drs): Same.
  2691. (build_base_obj_set_for_drs): Same.
  2692. (build_scop_drs): Same.
  2693. 2009-09-26 Li Feng <nemokingdom@gmail.com>
  2694. * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
  2695. the alias graph of data references.
  2696. 2009-09-25 Li Feng <nemokingdom@gmail.com>
  2697. * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
  2698. (build_scop_drs): When debugging, write the alias graph to file,
  2699. otherwise, should be disabled.
  2700. 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
  2701. * Merge from mainline (151310:151361).
  2702. 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
  2703. * Merge from mainline (151171:151310).
  2704. 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
  2705. * Merge from mainline (151171:151806).
  2706. 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
  2707. * Revert the last commit.
  2708. 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
  2709. * Merge from mainline (151171:151819).
  2710. 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
  2711. * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
  2712. (is_simple_operand): Remove call to stmt_simple_memref_p.
  2713. (stmt_simple_for_scop_p): Update call to is_simple_operand.
  2714. 2009-09-17 David Edelsohn <edelsohn@gnu.org>
  2715. * gcc.dg/graphite/interchange-mvt.c: New File.
  2716. * gcc.dg/graphite/scop-dsyrk.c: New File.
  2717. * gcc.dg/graphite/scop-dsyr2k.c: New File.
  2718. * gcc.dg/graphite/scop-mvt.c: New File.
  2719. * gcc.dg/graphite/scop-sor.c: New File.
  2720. 2009-09-17 Li Feng <nemokingdom@gmail.com>
  2721. * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
  2722. (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
  2723. (graphite_carried_dependence_level_k): Ditto.
  2724. * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
  2725. * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
  2726. (new_poly_dr): Adjust declaration.
  2727. * graphite-sese-to-poly.c (free_data_refs_aux): New.
  2728. (free_gimple_bb): Added free_data_refs_aux.
  2729. (build_poly_dr): Add dr_base_object_set.
  2730. (partition_drs_to_sets): New.
  2731. (dr_same_base_object_p): New.
  2732. (build_alias_set_for_drs): New.
  2733. (build_base_object_set_for_drs): New.
  2734. (build_scop_drs): Add build_base_obj_set_for_drs.
  2735. * graphite-sese-to-poly.h: Added #define for alias set number index and
  2736. base object set index.
  2737. * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
  2738. * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
  2739. 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
  2740. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
  2741. for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
  2742. 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
  2743. * graphite-sese-to-poly.c (struct irp_data): Removed.
  2744. (idx_record_params): Removed.
  2745. (find_params_in_bb): Scan for parameters the access functions; don't
  2746. parse the tree representation.
  2747. 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
  2748. * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
  2749. passes at -O1 and below.
  2750. 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
  2751. * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
  2752. tree-scalar-evolution.h, and then tree-data-ref.h.
  2753. * graphite-clast-to-gimple.c: Same.
  2754. * graphite-dependences.c: Same.
  2755. * graphite-interchange.c: Same.
  2756. * graphite-poly.c: Same.
  2757. * graphite-scop-detection.c: Same.
  2758. * graphite-sese-to-poly.c: Same.
  2759. * graphite.c: Same.
  2760. * lambda-code.c: Same.
  2761. * matrix-reorg.c: Same.
  2762. * tree-data-ref.c: Same.
  2763. * tree-if-conv.c: Same.
  2764. * tree-loop-distribu: Same.: Same.
  2765. * tree-loop-linear.c: Same.
  2766. * tree-parloops.c: Same.
  2767. * tree-predcom.c: Same.
  2768. * tree-vect-patterns.c: Same.
  2769. 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
  2770. Partially revert the previous patch, except the following.
  2771. * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
  2772. as parameters the operands of the not expression.
  2773. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2774. * tree-scalar-evolution.c (instantiate_scev_assign): New.
  2775. Do not call analyze_scalar_evolution on assignments.
  2776. (instantiate_scev_phi): Call analyze_scalar_evolution.
  2777. (instantiate_scev_name): Call instantiate_scev_assign and
  2778. instantiate_scev_phi.
  2779. (instantiate_scev_not): Adapted to pass as parameters the operands
  2780. of the not expression.
  2781. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2782. * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
  2783. to pass as parameters the operands of the binary expression.
  2784. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2785. * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
  2786. instantiate_scev_not. Handle NEGATE_EXPR.
  2787. (instantiate_scev_r): Handle NEGATE_EXPR.
  2788. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2789. * tree-scalar-evolution.c (instantiate_scev_1): Renamed
  2790. instantiate_scev_r.
  2791. (instantiate_scev_r): Move code in instantiate_scev_2
  2792. and instantiate_scev_1.
  2793. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2794. * tree-scalar-evolution.c (instantiate_scev_3): New.
  2795. (instantiate_scev_1): Move code in instantiate_scev_3.
  2796. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2797. * tree-scalar-evolution.c (instantiate_scev_poly): New.
  2798. (instantiate_scev_1): Move code in instantiate_scev_poly.
  2799. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2800. * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
  2801. (instantiate_scev_1): Move code in instantiate_scev_bitnot.
  2802. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2803. * tree-scalar-evolution.c (instantiate_scev_convert): New.
  2804. (instantiate_scev_1): Move code in instantiate_scev_convert.
  2805. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2806. * tree-scalar-evolution.c (instantiate_scev_binary): New.
  2807. (instantiate_scev_1): Move code in instantiate_scev_binary.
  2808. 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
  2809. * tree-scalar-evolution.c (instantiate_scev_name): New.
  2810. (instantiate_scev_1): Move code in instantiate_scev_name.
  2811. 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
  2812. * Merge from mainline (150992:151171).
  2813. 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
  2814. * opts.c (decode_options): Enable flag_loop_interchange at -O2.
  2815. 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
  2816. * graphite-dependences.c (graphite_legal_transform_bb): Call
  2817. pbb_remove_duplicate_pdrs.
  2818. * graphite-poly.c (can_collapse_pdr): Removed.
  2819. (pdr_find_duplicate): Removed.
  2820. (can_collapse_pdrs): New.
  2821. (pbb_remove_duplicate_pdrs): New.
  2822. (new_poly_dr): Do not look for duplicates.
  2823. * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
  2824. (PBB_PDR_DUPLICATES_REMOVED): New.
  2825. (pbb_remove_duplicate_pdrs): Declared.
  2826. 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
  2827. * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
  2828. the strides by multiplying by PDR_NB_REFS.
  2829. * graphite-poly.c (can_collapse_pdr): New.
  2830. (pdr_find_duplicate): New.
  2831. (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
  2832. Initialize PDR_NB_REFS.
  2833. * graphite-poly.h (struct poly_dr): Add field nb_refs.
  2834. (PDR_NB_REFS): New.
  2835. (new_poly_dr): Number of subscripts is a graphite_dim_t.
  2836. 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
  2837. Revert one of the previous commits:
  2838. * graphite-dependences.c (graphite_legal_transform_bb): Avoid
  2839. the computation of symmetric data dependence relations.
  2840. (dependency_between_pbbs_p): Same.
  2841. 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
  2842. PR middle-end/40965
  2843. * graphite-poly.c (apply_poly_transforms): Remove legality test before
  2844. any transform.
  2845. 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
  2846. * graphite-dependences.c (pddr_original_scattering): Return NULL
  2847. for read-read dependence relations.
  2848. * graphite-poly.h (enum poly_dr_type): Fix comment.
  2849. (pdr_read_p): New.
  2850. (pdr_write_p): New.
  2851. (pdr_may_write_p): New.
  2852. 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
  2853. * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
  2854. (struct poly_dr): Same.
  2855. (new_poly_dr): Same.
  2856. * graphite-poly.c (new_poly_dr): Same.
  2857. 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  2858. Sebastian Pop <sebastian.pop@amd.com>
  2859. * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
  2860. pbb_strip_mine_time_depth. Changed the implementation so that
  2861. transformation is expressed as a transformation on
  2862. time (scatttering) dimensions. Also, ensures that the 2d+1
  2863. scheduling format is preserved.
  2864. (pbb_strip_mine_profitable_p): Profitability is based on the
  2865. iteration number of a given time (scattering) dimension,
  2866. and not on a original loop depth dimension.
  2867. (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
  2868. (pbb_do_strip_mine): Call psct_dynamic_dim.
  2869. * graphite-poly.c (pbb_number_of_iterations_at_time): New.
  2870. * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
  2871. (pbb_nb_dynamic_scattering_transform): New.
  2872. (psct_dynamic_dim): New.
  2873. 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  2874. * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
  2875. * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
  2876. * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
  2877. * graphite-interchange.c (build_linearized_memory_access): Same.
  2878. (memory_stride_in_loop): Same.
  2879. 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
  2880. * graphite-dependences.c (pddr_original_scattering): New.
  2881. (graphite_legal_transform_dr): Call pddr_original_scattering.
  2882. (dot_deps_1): New.
  2883. (dot_deps): New.
  2884. * graphite-dependences.h (dot_deps): Declared.
  2885. * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
  2886. (print_pdr): Print PDR_ID.
  2887. * graphite-poly.h (struct poly_dr): Add field id.
  2888. (PDR_ID): New.
  2889. (pbb_index): New.
  2890. * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
  2891. 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
  2892. * graphite-dependences.c (graphite_carried_dependence_level_k): Do
  2893. not delete the original dependence relation.
  2894. 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
  2895. * graphite-dependences.c (graphite_legal_transform_bb): Avoid
  2896. the computation of symmetric data dependence relations.
  2897. (dependency_between_pbbs_p): Same.
  2898. 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
  2899. * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
  2900. (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
  2901. (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
  2902. (free_poly_ddr): New.
  2903. (pddr_is_empty): New.
  2904. (dependence_polyhedron_1): Now returns a poly_ddr_p.
  2905. (dependence_polyhedron): Same. Remove useless gcc_assert.
  2906. Remove fprintfs.
  2907. (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
  2908. (graphite_carried_dependence_level_k): Call pddr_is_empty.
  2909. * graphite-dependences.h (enum poly_dependence_kind): New.
  2910. (poly_dr_pair): Renamed poly_ddr. Added a field kind.
  2911. (PDRP_SOURCE): Renamed PDDR_SOURCE.
  2912. (PDRP_SINK): Renamed PDDR_SINK.
  2913. (PDRP_DDP): Renamed PDDR_DDP.
  2914. (PDDR_KIND): New.
  2915. (free_poly_ddr): Declared.
  2916. * graphite-poly.c (new_scop): Use the new hash function names.
  2917. * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
  2918. into original_pddrs.
  2919. (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
  2920. 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
  2921. * Merge from mainline (150764:150992).
  2922. 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
  2923. * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
  2924. bounds with LT_EXPR to make niter analysis more precise on code
  2925. generated by Graphite.
  2926. 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
  2927. * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
  2928. (graphite_legal_transform_bb): Same.
  2929. (poly_drs_may_alias_p): Same.
  2930. 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
  2931. PR middle-end/40981
  2932. * graphite-ppl.c (ppl_max_for_le): Correct the use of
  2933. ppl_Pointset_Powerset_C_Polyhedron_maximize.
  2934. 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
  2935. * graphite-poly.c (print_pbb): Print PBB index.
  2936. 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
  2937. * Merge from mainline (r150672:150764).
  2938. 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
  2939. * graphite-interchange.c (ppl_max_for_le): Moved...
  2940. * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
  2941. * graphite-ppl.c (ppl_max_for_le): ... here.
  2942. * graphite-ppl.h (ppl_max_for_le): Declared.
  2943. 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
  2944. * Merge from mainline (r150372:150672).
  2945. 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
  2946. PR middle-end/40980
  2947. * sese.c (convert_for_phi_arg): New.
  2948. (add_guard_exit_phis): Use convert_for_phi_arg.
  2949. * gfortran.dg/graphite/id-17.f: New.
  2950. 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
  2951. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
  2952. unknown subscript upper bounds.
  2953. * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
  2954. 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
  2955. Pranav Garg <pranav.garg2107@gmail.com>
  2956. * graphite-interchange.c (gather_access_strides): Removed.
  2957. (ppl_max_for_le): New.
  2958. (build_linearized_memory_access): New.
  2959. (memory_stride_in_loop): New.
  2960. (pbb_interchange_profitable_p): Reimplemented.
  2961. * graphite-ppl.h (ppl_new_id_map): New.
  2962. (ppl_interchange): New.
  2963. * gcc.dg/graphite/interchange-6.c: XFAILed.
  2964. 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
  2965. * graphite-interchange.c (compute_subscript): Removed.
  2966. (compute_array_size_cstr): Removed.
  2967. (compute_array_size_poly): Removed.
  2968. (compute_array_size): Removed.
  2969. (gather_access_strides_poly): Removed.
  2970. (gather_access_strides): Empty.
  2971. 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
  2972. * graphite-dependences.c (dependence_polyhedron_1): Replace
  2973. pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
  2974. (graphite_legal_transform_dr): Same.
  2975. (graphite_carried_dependence_level_k): Same.
  2976. * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
  2977. Initialize PDR_NB_SUBSCRIPTS.
  2978. (print_pdr_access_layout): Replace pdr_nb_subscripts with
  2979. PDR_NB_SUBSCRIPTS.
  2980. * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
  2981. (PDR_NB_SUBSCRIPTS): New.
  2982. (pdr_nb_subscripts): Removed.
  2983. (pdr_dim): Simplified.
  2984. * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
  2985. with PDR_NB_SUBSCRIPTS.
  2986. 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
  2987. * graphite-interchange.c (compute_array_size): Remove use of
  2988. PDR_DATA_CONTAINER.
  2989. * graphite-poly.c (new_poly_dr): Remove argument data_container.
  2990. Do not initialize PDR_DATA_CONTAINER.
  2991. (print_pdr): Do not print PDR_DATA_CONTAINER.
  2992. * graphite-poly.h (struct poly_dr): Remove data_container field.
  2993. (PDR_DATA_CONTAINER): Removed.
  2994. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
  2995. PDR_DATA_CONTAINER.
  2996. (build_poly_dr): Same.
  2997. 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
  2998. * gcc.dg/graphite/interchange-9.c: New.
  2999. 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  3000. Sebastian Pop <sebastian.pop@amd.com>
  3001. * graphite-dependences.c (graphite_legal_transform_dr): Work on a
  3002. copy of the dependence polyhedron. Free the temporary objects.
  3003. (graphite_carried_dependence_level_k): Free unused objects before
  3004. returning.
  3005. * gcc.dg/graphite/interchange-1.c: XFAILed.
  3006. * gcc.dg/graphite/interchange-2.c: XFAILed.
  3007. * gcc.dg/graphite/interchange-3.c: XFAILed.
  3008. * gcc.dg/graphite/interchange-4.c: XFAILed.
  3009. * gcc.dg/graphite/interchange-7.c: XFAILed.
  3010. 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
  3011. * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
  3012. Early return without analyzing the data dependences if no
  3013. transform has been done. Call restore_scattering if the transform
  3014. is not legal.
  3015. (graphite-interchange.c): Same.
  3016. * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
  3017. (graphite_read_transforms): Initialize PBB_TRANSFORMED.
  3018. (apply_poly_transforms): Do not gcc_assert that
  3019. the transform is legal.
  3020. (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
  3021. Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
  3022. PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
  3023. (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
  3024. * graphite-poly.h (struct poly_scattering): New.
  3025. (struct poly_bb): Add original, transformed, and saved fields.
  3026. Remove transformed_scattering, original_scattering, nb_local_variables,
  3027. and nb_scattering_transform fields.
  3028. (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
  3029. (poly_scattering_new): New.
  3030. (poly_scattering_free): New.
  3031. (poly_scattering_copy): New.
  3032. (store_scattering_pbb): New.
  3033. (store_scattering): New.
  3034. (restore_scattering_pbb): New.
  3035. (restore_scattering): New.
  3036. * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
  3037. Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
  3038. 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
  3039. * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
  3040. (print_scop): Same.
  3041. 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
  3042. * Makefile.in (graphite.o): Depends on PREDICT_H.
  3043. * graphite.c: Include predict.h.
  3044. (graphite_finalize): Call tree_estimate_probability.
  3045. * predict.c (predict_loops): Do not call scev_initialize and
  3046. scev_finalize.
  3047. (tree_estimate_probability_bb): New.
  3048. (tree_estimate_probability): Do not initialize loops: move that
  3049. code to the driver. Call tree_estimate_probability_bb.
  3050. (tree_estimate_probability_driver): New.
  3051. (pass_profile): Use tree_estimate_probability_driver.
  3052. * predict.h (tree_estimate_probability): Declared.
  3053. 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
  3054. * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
  3055. * graphite-dependences.c (graphite_legal_transform): Add time to
  3056. TV_GRAPHITE_DATA_DEPS.
  3057. (dependency_between_pbbs_p): Same.
  3058. * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
  3059. 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
  3060. * Merge from mainline (r149952:150372).
  3061. 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
  3062. * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
  3063. * graphite-blocking.c: Same.
  3064. * graphite-clast-to-gimple.c: Same.
  3065. * graphite-dependences.c: Same.
  3066. * graphite-poly.c: Same.
  3067. * graphite-poly.h: Same.
  3068. * graphite-ppl.c: Same.
  3069. * graphite-scop-detection.c: Same.
  3070. * graphite-sese-to-poly.c: Same.
  3071. * graphite.c: Same.
  3072. 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
  3073. * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
  3074. (remove_simple_copy_phi): New.
  3075. (remove_invariant_phi): New.
  3076. (simple_copy_phi_p): New.
  3077. (reduction_phi_p): New.
  3078. (gsi_for_ssa_name_def): New.
  3079. (insert_out_of_ssa_copy): New.
  3080. (insert_out_of_ssa_copy_on_edge): New.
  3081. (create_zero_dim_array): New.
  3082. (scalar_close_phi_node_p): New.
  3083. (rewrite_close_phi_out_of_ssa): New.
  3084. (rewrite_phi_out_of_ssa): New.
  3085. (rewrite_reductions_out_of_ssa): New.
  3086. (build_poly_scop): Call rewrite_reductions_out_of_ssa.
  3087. * gcc.dg/graphite/id-11.c: New.
  3088. * gcc.dg/graphite/id-15.c: New.
  3089. * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
  3090. * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
  3091. * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
  3092. * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
  3093. * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
  3094. * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
  3095. * gfortran.dg/graphite/id-13.f: New.
  3096. * gfortran.dg/graphite/id-5.f: New.
  3097. 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
  3098. * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
  3099. check that nb_reductions_in_loop is zero.
  3100. * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
  3101. reduction phi nodes.
  3102. (nb_reductions_in_loop): Removed.
  3103. (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
  3104. * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
  3105. (bb_contains_non_iv_scalar_phi_nodes): Removed.
  3106. (scop_contains_non_iv_scalar_phi_nodes): Removed.
  3107. (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
  3108. 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
  3109. * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
  3110. statements that have an empty iteration domain.
  3111. * gfortran.dg/graphite/id-16.f: New.
  3112. 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
  3113. * tree-scalar-evolution.c (instantiate_scev_1): Return
  3114. chrec_dont_know when the result is not above instantiate_below.
  3115. * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
  3116. * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
  3117. the tree has a known scalar evolution.
  3118. * gfortran.dg/graphite/id-14.f: New.
  3119. * gfortran.dg/graphite/id-15.f: New.
  3120. 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
  3121. * sese.c (rename_variables_in_stmt): Pass in an extra parameter
  3122. insert_gsi.
  3123. (rename_variables): Keep inserting renames after the ones already
  3124. inserted.
  3125. 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
  3126. * graphite-sese-to-poly.c (compare_bb_depths): New.
  3127. (graphite_sort_dominated_info): New.
  3128. (build_scop_bbs_1): Call graphite_sort_dominated_info.
  3129. (build_scop_scattering): Fix comment.
  3130. 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
  3131. * graphite.c (graphite_finalize): Call print_loops instead of
  3132. dump_function_to_file.
  3133. * gcc.dg/graphite/graphite.exp: Fix formatting.
  3134. * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
  3135. loops generated in the graphite output file.
  3136. * gcc.dg/graphite/pr35356-2.c: New.
  3137. * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
  3138. * gfortran.dg/graphite/id-12.f: New.
  3139. 2009-07-24 Li Feng <nemokingdom@gmail.com>
  3140. * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
  3141. Remove 2 XFAIL.
  3142. 2009-07-24 Li Feng <nemokingdom@gmail.com>
  3143. Tobias Grosser <grosser@fim.uni-passau.de>
  3144. * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
  3145. alias set number build alias in ACCESSES polyhedron.
  3146. (build_alias_set_for_drs): New.
  3147. (build_pbb_drs): Added build_alias_set_for_drs.
  3148. * graphite-dependences.c (poly_drs_may_alias_p): New.
  3149. (graphite_carried_dependence_level_k): Check alias information
  3150. before building polyhedron.
  3151. 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
  3152. * Makefile.in (lambda-code.o): Fix formatting.
  3153. 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
  3154. * Merge from mainline (r149350-149952)
  3155. 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
  3156. * graphite-poly.c (apply_poly_transforms): Move strip_mine
  3157. before interchange to prepare for loop blocking.
  3158. 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
  3159. * graphite-poly.c (apply_poly_transforms): Add checks after every
  3160. transformation.
  3161. * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
  3162. done in apply_poly_transforms.
  3163. 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  3164. * graphite-dependences.c (build_lexicographically_gt_constraint):
  3165. Replace RES parameter with *RES.
  3166. (dependence_polyhedron_1): Pass an address of the parameter RES
  3167. instead of value of RES.
  3168. 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
  3169. * graphite.c (graphite_finalize): Fix comment.
  3170. (graphite_transform_loops): Reset scev info after code generation
  3171. of each scop.
  3172. 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
  3173. * graphite.c (graphite_finalize): Call scev_reset.
  3174. 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
  3175. * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
  3176. GBB_CLOOG_IV_TYPES hash table twice.
  3177. * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
  3178. (add_condition_to_domain): Clear GMP values.
  3179. 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
  3180. * graphite-dependences.c: Fix formatting.
  3181. * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
  3182. (pbb_number_of_iterations): Free ppl_Linear_Expression.
  3183. * graphite-sese-to-poly.c: Fix formatting.
  3184. * graphite.c (graphite_transform_loops): Create the hash table
  3185. after the early return.
  3186. 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
  3187. * gcc.dg/graphite/id-14.c: New.
  3188. * gcc.dg/graphite/pr40157.c: New.
  3189. * gfortran.dg/graphite/id-11.f: New.
  3190. 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
  3191. * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
  3192. (build_poly_scop): Return false when there are no pbbs within
  3193. loops to avoid to pass to cloog scops with no loops.
  3194. 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
  3195. * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
  3196. useless test "i % 2".
  3197. (build_pbb_scattering_polyhedrons): Fix formatting.
  3198. (build_poly_dr): Same.
  3199. * graphite.c (graphite_transform_loops): Restructure.
  3200. 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
  3201. * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
  3202. reduction_list parameter.
  3203. (rewrite_all_phi_nodes_with_iv): Same.
  3204. (canonicalize_loop_ivs): Same.
  3205. * tree-parloops.c (struct brli): Removed.
  3206. (build_reduction_list_info): Removed.
  3207. (build_new_reduction): New.
  3208. (analyze_reduction_list): Removed.
  3209. (gather_scalar_reductions): Find reductions instead of phi
  3210. nodes that can't be canonicalized.
  3211. (try_create_reduction_list): Remove reduction_list parameter.
  3212. (gen_parallel_loop): Same.
  3213. (parallelize_loops): Remove analyze_reductions variable,
  3214. initialization and free.
  3215. Change reduction_list htab initialization to reduction_info
  3216. elements instead of ssa names.
  3217. Call try_create_reduction_list and gen_parallel_loop without
  3218. analyzed_reduction argument.
  3219. * graphite-clast-to-gimple (graphite_loop_normal_form): Call
  3220. canonicalize_loop_ivs with one less argument.
  3221. * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
  3222. 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  3223. * graphite-dependences.c (new_poly_dr_pair): New.
  3224. (dependence_polyhedron): Renamed into dependence_polyhedron_1.
  3225. (new_poly_dr_pair): New.
  3226. (eq_poly_dr_pair_p): New.
  3227. (hash_poly_dr_pair_p): New.
  3228. * graphite-dependences.h (struct poly_dr_pair): New.
  3229. (eq_poly_dr_pair_p): Declared.
  3230. (hash_poly_dr_pair_p): Declared.
  3231. * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
  3232. (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
  3233. * graphite-poly.h (struct scop): Add original_pdr_pairs field.
  3234. * Makefile.in (graphite-poly.o): Add dependence on
  3235. graphite-dependences.h.
  3236. 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
  3237. * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
  3238. polynomials of degree > 1 pass to Graphite.
  3239. * tree-chrec.c (scev_is_linear_expression): Call
  3240. evolution_function_is_affine_multivariate_p.
  3241. * gfortran.dg/graphite/id-10.f90: New.
  3242. 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
  3243. * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
  3244. Instantiate scevs varying in outer loops.
  3245. * gfortran.dg/graphite/id-9.f: Correct testcase.
  3246. 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
  3247. * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
  3248. redundant constraint.
  3249. 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
  3250. * gcc.dg/graphite/graphite.exp: Fix comments.
  3251. * gfortran.dg/graphite/graphite.exp: Trigger actions
  3252. based on the file names as in the C testsuite.
  3253. * gfortran.dg/graphite/block-1.f90: Fix patterns.
  3254. * gfortran.dg/graphite/block-2.f: Same.
  3255. * gfortran.dg/graphite/block-3.f90: Same.
  3256. * gfortran.dg/graphite/block-4.f90: Same.
  3257. * gfortran.dg/graphite/id-1.f90: Same.
  3258. * gfortran.dg/graphite/id-2.f90: Same.
  3259. * gfortran.dg/graphite/id-3.f90: Same.
  3260. * gfortran.dg/graphite/id-4.f90: Same.
  3261. * gfortran.dg/graphite/id-6.f: Same.
  3262. * gfortran.dg/graphite/id-9.f: Same.
  3263. * gfortran.dg/graphite/interchange-1.f: Same.
  3264. * gfortran.dg/graphite/interchange-2.f: Same.
  3265. * gfortran.dg/graphite/scop-1.f: Same.
  3266. 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
  3267. * sese.c (expand_scalar_variables_call): New.
  3268. (expand_scalar_variables_ssa_name): Handle calls in expander.
  3269. 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
  3270. * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
  3271. Expect to see the pattern twice.
  3272. * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
  3273. * gcc.dg/graphite/interchange-5.c: Same.
  3274. * gcc.dg/graphite/interchange-6.c: Same.
  3275. 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
  3276. * gcc.dg/graphite/id-10.c: New.
  3277. * gcc.dg/graphite/id-12.c: New.
  3278. * gfortran.dg/graphite/id-7.f: New.
  3279. * gfortran.dg/graphite/id-8.f: New.
  3280. 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
  3281. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
  3282. zero.
  3283. 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
  3284. * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
  3285. 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
  3286. * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
  3287. 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
  3288. * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
  3289. building PDR subscripts.
  3290. 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
  3291. * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
  3292. computation of array sizes.
  3293. 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
  3294. * graphite-sese-to-poly.c (add_param_constraints): Disabled.
  3295. 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
  3296. * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
  3297. build_pairwise_constraint, dr_equality_constraints,
  3298. build_pairwise_scheduling_equality,
  3299. build_pairwise_scheduling_inequality, lexicographically_gt_p,
  3300. build_lexicographically_gt_constraint, dependence_polyhedron,
  3301. graphite_legal_transform_dr, graphite_carried_dependence_level_k):
  3302. Move from NNC_Polyhedron to C_Polyhedron.
  3303. * graphite-interchange.c (compute_array_size_poly,
  3304. gather_access_strides): Dito.
  3305. * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
  3306. free_scop, pbb_number_of_iterations): Dito.
  3307. * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
  3308. pbb_dim_iter_domain, struct scop): Dito.
  3309. * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
  3310. new_Cloog_Domain_from_ppl_Polyhedron,
  3311. new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
  3312. ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
  3313. ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
  3314. ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
  3315. debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
  3316. * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
  3317. new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
  3318. debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
  3319. * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
  3320. build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
  3321. add_condition_to_domain, add_condition_to_pbb, build_scop_context,
  3322. build_scop_iteration_domain, build_poly_dr): Dito
  3323. 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
  3324. * gcc.dg/graphite/graphite.exp: Added a rule to execute
  3325. run-id-*.c files.
  3326. * gcc.dg/graphite/run-id-1.c: New.
  3327. 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
  3328. * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
  3329. positivity constraint on the symbolic number of iterations.
  3330. 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
  3331. * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
  3332. 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
  3333. Tobias Grosser <grosser@fim.uni-passau.de>
  3334. * graphite-clast-to-gimple.c (build_scop_context): Removed.
  3335. (build_cloog_prog): Directly use SCOP_CONTEXT.
  3336. * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
  3337. (free_scop): Free SCOP_CONTEXT.
  3338. (print_scop_context): New.
  3339. (print_scop): Call print_scop_context.
  3340. (debug_scop_context): New.
  3341. * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
  3342. (struct scop): Added field context.
  3343. (SCOP_CONTEXT): New.
  3344. * graphite-sese-to-poly.c (add_param_constraints): New.
  3345. (build_scop_context): New.
  3346. (build_poly_scop): Call build_scop_context.
  3347. 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
  3348. * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
  3349. * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
  3350. (ppl_set_inhomogeneous, ppl_set_coef): Moved...
  3351. * graphite-ppl.h: Include double-int.h and tree.h.
  3352. (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
  3353. (ppl_set_inhomogeneous, ppl_set_coef): ...here.
  3354. (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
  3355. (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
  3356. 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
  3357. * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
  3358. POINTER_PLUS_EXPR for pointer types.
  3359. (clast_to_gcc_expression): Same.
  3360. 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
  3361. * graphite-poly.c (print_scattering_function): Early return when
  3362. PBB_TRANSFORMED_SCATTERING is not initialized.
  3363. (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
  3364. 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
  3365. * tree-parloops.c (analyze_reduction_list): Remove unused variable
  3366. to fix bootstrap.
  3367. 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
  3368. * tree-parloops.c (analyze_reduction_list): Change return
  3369. value to void.
  3370. (try_create_reduction_list): Move the call to
  3371. analyze_reduction_list to the beginining.
  3372. Call reduction_phi with analyzed_reductions as argument
  3373. instead of reduction_list.
  3374. 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
  3375. * Merge from mainline (r148296:149346)
  3376. 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
  3377. * graphite-scop-detection.c (graphite_can_represent_init): New.
  3378. (graphite_can_represent_scev): Call graphite_can_represent_init:
  3379. check that the initial value does not contain multiplications of
  3380. parameters.
  3381. (stmt_has_simple_data_refs_p): New.
  3382. (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
  3383. (is_simple_operand): Fix formatting.
  3384. * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
  3385. 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
  3386. * gcc.dg/graphite/id-13.c: New.
  3387. * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
  3388. analyze_scalar_evolution, use scalar_evolution_in_region.
  3389. (scan_tree_for_params_right_scev): Add extra assert.
  3390. (parameter_index_in_region_1): Split from parameter_index_in_region.
  3391. (idx_record_params): Use scalar_evolution_in_region.
  3392. (find_params_in_bb): Same.
  3393. (find_scop_parameters): Same.
  3394. (build_loop_iteration_domains): Same.
  3395. (create_linear_expr_from_tree): Same.
  3396. * sese.c (scalar_evolution_in_region): New.
  3397. * sese.h (scalar_evolution_in_region): Declared.
  3398. (defined_in_sese_p): New.
  3399. * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
  3400. static anymore.
  3401. * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
  3402. Declared.
  3403. 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
  3404. * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
  3405. TREE_DATA_REF_H also implies SCEV_H.
  3406. 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
  3407. * graphite-poly.c (print_scop_params): New.
  3408. (print_scop): Call print_scop_params.
  3409. (debug_scop_params): New.
  3410. * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
  3411. 2009-07-07 Li Feng <nemokingdom@gmail.com>
  3412. * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
  3413. * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
  3414. * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
  3415. * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
  3416. * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
  3417. * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
  3418. 2009-07-07 Li Feng <nemokingdom@gmail.com>
  3419. * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
  3420. for dependency checking part.
  3421. * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
  3422. tests for dependency checking.
  3423. * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
  3424. * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
  3425. * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
  3426. flag -fdump-tree-graphite-all for autopar testsuites.
  3427. 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
  3428. * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
  3429. * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
  3430. canonicalize_loop_ivs): Moved...
  3431. * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
  3432. 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
  3433. * tree-parloops.c (try_create_reduction_list): Pass an extra
  3434. argument analyzed_reductions. Call analyze_reduction_list.
  3435. (gen_parallel_loop): Do not call analyze_reduction_list.
  3436. (parallelize_loops): Init and finalize analyzed_reductions.
  3437. 2009-07-06 Li Feng <nemokingdom@gmail.com>
  3438. * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
  3439. Added flag -fno-loop-strip-mine for autopar testcase.
  3440. 2009-07-04 Li Feng <nemokingdom@gmail.com>
  3441. * graphite-dependences.c (graphite_carried_dependence_level_k): Use
  3442. transformed scattering dimension instead of unmatch orignal when
  3443. calling dependence_polyhedron.
  3444. 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
  3445. * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
  3446. 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
  3447. * graphite-poly.c (pbb_number_of_iterations): Check for returned
  3448. value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
  3449. 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
  3450. * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
  3451. (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
  3452. * graphite-poly.c (pbb_number_of_iterations): New.
  3453. * graphite-poly.h (pbb_number_of_iterations): Declared.
  3454. (pbb_iterator_dim, pbb_parameter_dim): New.
  3455. 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
  3456. * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
  3457. last commit on type of lower and upper bound of loops.
  3458. 2009-06-29 Li Feng <nemokingdom@gmail.com>
  3459. * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
  3460. graphite-dependences.h.
  3461. * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
  3462. (mark_bb_with_pbb): New.
  3463. (get_stmtfor_depth): New.
  3464. (find_pbb_via_hash): New.
  3465. (dependency_in_loop_p): New.
  3466. (mark_loops_parallel): New.
  3467. (free_aux_in_new_loops): New.
  3468. (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
  3469. bb with it's relevant pbb. Mark newly created loops. Remove mark
  3470. innermost loop parallel without checking.
  3471. (gloog): Add parameter BB_PBB_MAPPING.
  3472. * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
  3473. (gloog): Change declaration.
  3474. (mark_loop_parallel): Make extern.
  3475. (free_aux_in_new_loops): Declare.
  3476. (bb_pbb_map_hash): New.
  3477. (eq_bb_pbb_map): New.
  3478. * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
  3479. auto parallelization when flag_graphite_force_parallel is set.
  3480. (graphite_finalize): Added free_aux_in_new_loops.
  3481. * tree-parloops.c (parallelize_loops): Only generate parallel code for
  3482. the innermost loop that marked parallel. Use
  3483. flag_graphite_force_parallel instead of loop->can_be_parallel.
  3484. (loop_parallel_p): Move inner most checking out of function.
  3485. 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
  3486. * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
  3487. type of lower and upper bound of loops signed long int.
  3488. 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
  3489. * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
  3490. expression outside the loop.
  3491. 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
  3492. * gcc.dg/graphite/interchange-8.c: New.
  3493. 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
  3494. * gcc.dg/graphite/interchange-0.c: XFailed.
  3495. * gcc.dg/graphite/interchange-5.c: XFailed.
  3496. * gcc.dg/graphite/interchange-6.c: XFailed.
  3497. 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
  3498. * graphite-interchange.c (compute_array_size_poly): The end of the
  3499. recursion should return 1.
  3500. 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
  3501. * graphite-interchange.c (compute_array_size_cstr): Allow the
  3502. subscript multiplier to be -1.
  3503. (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
  3504. * graphite-poly.c (new_poly_dr): Takes an extra argument for the
  3505. data_container. Initializes PDR_DATA_CONTAINER.
  3506. (print_pdr_access_layout): New.
  3507. (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
  3508. * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
  3509. data_container.
  3510. (PDR_DATA_CONTAINER): New.
  3511. (new_poly_dr): Update declaration.
  3512. * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
  3513. (build_poly_dr): Call pdr_add_data_dimensions.
  3514. 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
  3515. * graphite-poly.h (struct poly_dr): Fix comment.
  3516. * graphite-sese-to-poly.c (pdr_add_alias_set): New.
  3517. (pdr_add_memory_accesses): New.
  3518. (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
  3519. 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
  3520. * graphite-poly.c (print_pdrs, debug_pdrs): New.
  3521. (print_pbb): Add call to print_pdrs.
  3522. * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
  3523. 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
  3524. Li Feng <nemokingdom@gmail.com>
  3525. * graphite-dependences.c (graphite_carried_dependence_level_k): New.
  3526. (dependency_between_pbbs_p): New.
  3527. (lexicographically_gt_p): Assure !empty_p before polyhedron
  3528. intersection assign.
  3529. (build_lexicographically_gt_constraint): Correct lexicographically
  3530. judging.
  3531. * graphite-dependences.h: New.
  3532. * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
  3533. 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
  3534. * graphite-clast-to-gimple.c (print_clast_stmt): New.
  3535. (gloog): Print to dump_file the generated clast.
  3536. * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
  3537. * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
  3538. 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
  3539. * graphite-poly.c (extend_scattering): Increment
  3540. PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
  3541. 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
  3542. * graphite-interchange.c (compute_array_size_poly): Added exit of
  3543. recursion condition. Continue iterating even after the first equality.
  3544. (compute_array_size): Same.
  3545. 2009-06-24 Li Feng <nemokingdom@gmail.com>
  3546. * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
  3547. -fdump-tree-final_cleanup to -fdump-tree-optimized.
  3548. * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
  3549. * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
  3550. * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
  3551. 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
  3552. * sese.c (expand_scalar_variables_stmt): Expand scalar variables
  3553. only when the use verifies is_gimple_reg.
  3554. 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
  3555. * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
  3556. Allocate scaldims after call to unify_scattering_dimensions.
  3557. 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
  3558. * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
  3559. 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
  3560. Albert Cohen <albert.cohen@inria.fr>
  3561. * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
  3562. variables for the strip mining.
  3563. 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
  3564. Pranav Garg <pranav.garg2107@gmail.com>
  3565. * Makefile.in (OBJS-common): Added graphite-blocking.o.
  3566. (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
  3567. (graphite-blocking.o): New rule.
  3568. (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
  3569. * graphite-blocking.c: New.
  3570. * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
  3571. flag_loop_strip_mine.
  3572. (psct_scattering_dim_for_loop_depth): New.
  3573. * graphite-poly.h (scop_do_strip_mine): Declared.
  3574. (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
  3575. * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
  3576. flag_loop_strip_mine.
  3577. 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
  3578. * graphite-poly.c (extend_scattering): Avoid initializing and freeing
  3579. a GMP value and a PPL coefficient at each iteration of a loop.
  3580. 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
  3581. * graphite-dependences.c (dependence_polyhedron): Do not use
  3582. pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
  3583. pbb_nb_scattering_transform.
  3584. (graphite_legal_transform_dr): Same.
  3585. * graphite-poly.c (extend_scattering): Same.
  3586. (unify_scattering_dimensions): Same.
  3587. (print_scattering_function): Same.
  3588. (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
  3589. PBB_NB_LOCAL_VARIABLES.
  3590. * graphite-poly.h (pbb_nb_scattering): Removed declaration.
  3591. (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
  3592. (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
  3593. (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
  3594. (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
  3595. (pbb_nb_scattering_transform): New.
  3596. (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
  3597. (psco_scattering_dim): Add assert on parameters.
  3598. (psct_scattering_dim): Same.
  3599. (psct_scattering_dim_for_loop_depth): Declared.
  3600. (psct_local_var_dim): New.
  3601. (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
  3602. (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
  3603. correct layout, call pbb_nb_local_vars.
  3604. (psct_add_local_variable, psct_add_scattering_dimension): New.
  3605. * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
  3606. Initialize PBB_NB_SCATTERING_TRANSFORM.
  3607. 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
  3608. * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
  3609. (set_coef): Renamed ppl_set_coef.
  3610. * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
  3611. 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
  3612. * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
  3613. test a boolean against 1.
  3614. * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
  3615. a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
  3616. (pbb_do_interchange): Returns true when a transform has been performed.
  3617. (scop_do_interchange): Same.
  3618. * graphite-poly.c (apply_poly_transforms): Use the return value of
  3619. scop_do_interchange.
  3620. * graphite-poly.h (scop_do_interchange): Update declaration.
  3621. 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
  3622. * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
  3623. after last use.
  3624. * sese.c (sese_reset_aux_in_loops): New.
  3625. * sese.h (sese_reset_aux_in_loops): New.
  3626. 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
  3627. * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
  3628. multiplier and multiply the constant by the multiplier.
  3629. (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
  3630. (build_poly_dr): Do not use the multiplier to define the subscript.
  3631. 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
  3632. * graphite-poly.c (new_poly_dr): Pass an extra argument for the
  3633. compiler's data reference. Initialize PDR_CDR.
  3634. (print_pdr): Call dump_data_reference.
  3635. * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
  3636. Add compiler_dr field.
  3637. (PDR_BB): Renamed PDR_PBB.
  3638. (PDR_CDR): New.
  3639. * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
  3640. GCC's data reference representation.
  3641. * tree-data-ref.c (debug_data_references, debug_data_reference): New.
  3642. * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
  3643. 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
  3644. * graphite-poly.c (print_scattering_function): Also print the layout.
  3645. * graphite-poly.h (pbb_nb_local_vars): New.
  3646. 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
  3647. * graphite-poly.c (print_pbb_domain): Also print the layout names.
  3648. 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
  3649. * graphite-poly.c (print_pdr, debug_pdr): New.
  3650. * graphite-poly.h (print_pdr, debug_pdr): Declared.
  3651. (PDR_BASE): Removed.
  3652. 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
  3653. * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
  3654. ltrans-{1..6,8}.c.
  3655. 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
  3656. * graphite-interchange.c (compute_subscript): Allow also -1 in the
  3657. subscript identification column.
  3658. (pbb_do_interchange): Print to dump_file that some loops "will be
  3659. interchanged". Rely on that chain of characters in the testcases.
  3660. * gcc.dg/graphite/interchange-0.c: New.
  3661. * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
  3662. interchange-*.c files and compile them with -floop-interchange.
  3663. 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
  3664. * graphite-interchange.c (interchange_profitable_p): Renamed
  3665. pbb_interchange_profitable_p.
  3666. 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
  3667. Harsha Jagasia <harsha.jagasia@amd.com>
  3668. Pranav Garg <pranav.garg2107@gmail.com>
  3669. * graphite-interchange.c (interchange_profitable_p): Make static.
  3670. (pbb_interchange_loop_depths, pbb_do_interchange,
  3671. scop_do_interchange): New.
  3672. * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
  3673. for flag_loop_interchange.
  3674. * graphite-poly.h (scop_do_interchange): Declared.
  3675. * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
  3676. flag_loop_interchange is used.
  3677. 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
  3678. * graphite-dependences.c (dependence_polyhedron): Update use of
  3679. pbb_nb_scattering_dims.
  3680. * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
  3681. (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
  3682. (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
  3683. psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
  3684. 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
  3685. * graphite.c: Cleanup foo.
  3686. 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
  3687. * Merge from mainline (r143684:148293).
  3688. * Disabled libpcp until it gets fixed.
  3689. 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
  3690. Harsha Jagasia <harsha.jagasia@amd.com>
  3691. * graphite-interchange.c: New.
  3692. * Makefile.in (graphite-interchange.o): New.
  3693. * graphite-poly.h (interchange_profitable_p): Declared.
  3694. * graphite-ppl.h (value_max): New.
  3695. 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
  3696. * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
  3697. * graphite-poly.h: Fix some comments.
  3698. (pdr_dim): New.
  3699. (pdr_scop): New.
  3700. 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
  3701. * graphite-poly.h
  3702. (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
  3703. (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
  3704. (pdr_accessp_nb_params): Renamed pdr_nb_params.
  3705. (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
  3706. (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
  3707. (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
  3708. (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
  3709. (pbb_nb_loops): Renamed pbb_dim_iter_domain.
  3710. * graphite-clast-to-gimple.c: Same.
  3711. * graphite-dependences.c: Same.
  3712. * graphite-poly.c: Same.
  3713. * graphite-sese-to-poly.c: Same.
  3714. 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
  3715. * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
  3716. expressions for an IV rename, as returned by clast_to_gcc_expression.
  3717. (copy_renames): Rename new_name to expr.
  3718. * sese.c (debug_rename_elt): Same.
  3719. (get_rename): Same.
  3720. (set_rename): Same.
  3721. (sese_adjust_liveout_phis): Call force_gimple_operand before using
  3722. the information from the rename map.
  3723. (rename_variables_in_stmt): Same.
  3724. (add_loop_exit_phis): Rename new_name to expr.
  3725. (insert_loop_close_phis): Same.
  3726. (add_guard_exit_phis): Same. Call force_gimple_operand.
  3727. * sese.h (struct rename_map_elt): Rename new_name to expr.
  3728. (new_rename_map_elt): Same.
  3729. 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
  3730. * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
  3731. * sese.c (set_rename): Make it extern.
  3732. * sese.h (set_rename): Declared.
  3733. 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
  3734. * graphite-poly.c (extend_scattering): Free values.
  3735. * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
  3736. Free iterators.
  3737. (ppl_print_powerset_matrix): Same.
  3738. * graphite-scop-detection.c (free_scops_1): New.
  3739. (limit_scops): Call free_scops_1.
  3740. * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
  3741. (build_poly_dr): Free PPL coefficients.
  3742. * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
  3743. 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
  3744. * graphite-dependences.c: New.
  3745. * graphite-data-ref.c: Removed.
  3746. * graphite-data-ref.h: Removed.
  3747. * Makefile.in (graphite-data-ref.o): Removed.
  3748. (graphite-dependences.o): Added.
  3749. * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
  3750. * graphite-poly.c: Same.
  3751. Move the data dependence testing to graphite-dependences.c.
  3752. 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
  3753. * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
  3754. from graphite_cannot_represent_loop. Code refactored.
  3755. (scopdet_basic_block_info): Call graphite_can_represent_loop.
  3756. 2009-05-17 Li Feng <nemokingdom@gmail.com>
  3757. * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
  3758. Cover all the testcases (not only the filtered ones).
  3759. 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
  3760. * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
  3761. unnecessary check. Update comments. Move check for REAL_TYPE here.
  3762. (harmful_stmt_in_bb): Remove checks for conditions. This is already
  3763. done in (stmt_simple_for_scop_p).
  3764. 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
  3765. * graphite.c (print_global_statistics): New.
  3766. (print_graphite_scop_statistic): New.
  3767. (print_graphite_statistics): New.
  3768. (graphite_initialize, graphite_transform_loops): Print statistics.
  3769. * graphite-scop-detection (build_scops): Print statistics.
  3770. (print_graphite_scop_statistics): New.
  3771. (print_graphite_statistics): New.
  3772. 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
  3773. * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
  3774. (debug_clast_name_index): Removed.
  3775. (debug_clast_name_indexes_1): Removed.
  3776. (debug_clast_name_indexes): Removed.
  3777. (clast_name_index_elt_info): Removed.
  3778. (eq_clast_name_indexes): Removed.
  3779. (clast_name_to_index): Removed.
  3780. (new_clast_name_index): Removed.
  3781. (save_clast_name_index): Removed.
  3782. (save_var_name): Moved...
  3783. (init_sese_params_index): Removed.
  3784. (clast_name_to_gcc): Remove use of name_tree.
  3785. (initialize_cloog_names): Same.
  3786. (gloog): Do not call init_sese_params_index.
  3787. * graphite-sese-to-poly.c (save_var_name): ...here.
  3788. (parameter_index_in_region): New.
  3789. * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
  3790. (parameter_index_in_region): Removed.
  3791. (is_parameter): Remove use of name_tree.
  3792. * sese.h (struct name_tree): Removed.
  3793. (struct sese): Remove use of name_tree. New field params_names.
  3794. (SESE_PARAMS_NAMES): New.
  3795. (SESE_PARAMS): Remove duplicate.
  3796. (parameter_index_in_region): Removed.
  3797. (sese_nb_params): Remove use of name_tree.
  3798. (struct clast_name_index): New.
  3799. (new_clast_name_index): New.
  3800. (clast_name_to_index): New.
  3801. (save_clast_name_index): New.
  3802. (debug_clast_name_index): New.
  3803. (debug_clast_name_indexes_1): New.
  3804. (debug_clast_name_indexes): New.
  3805. (clast_name_index_elt_info): New.
  3806. (eq_clast_name_indexes): New.
  3807. 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
  3808. * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
  3809. pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
  3810. (graphite_loop_normal_form): Do not pass region. Do not
  3811. initialize SESE_OLDIVS.
  3812. (build_graphite_loop_normal_form): Update call to
  3813. graphite_loop_normal_form.
  3814. * sese.c (debug_oldivs): Removed.
  3815. (new_sese): Do not initialize SESE_OLDIVS.
  3816. (free_sese): Do not free SESE_OLDIVS.
  3817. (oldiv_for_loop): Removed.
  3818. * sese.h (struct sese): Remove old_ivs.
  3819. (SESE_OLDIVS): Removed.
  3820. (oldiv_for_loop): Removed.
  3821. 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
  3822. * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
  3823. remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
  3824. replaced by a call to newivs_to_depth_to_newiv.
  3825. (clast_to_gcc_expression): Pass newivs, remove ivstack.
  3826. (clast_to_gcc_expression_red): Same.
  3827. (gcc_type_for_clast_expr): Same.
  3828. (gcc_type_for_clast_eq): Same.
  3829. (graphite_translate_clast_equation): Same.
  3830. (graphite_create_guard_cond_expr): Same.
  3831. (graphite_create_new_guard): Same.
  3832. (graphite_create_new_loop): Same.
  3833. (build_iv_mapping): Same.
  3834. (translate_clast): Same.
  3835. (gloog): Same.
  3836. (loop_iv_stack_patch_for_consts): Removed. *
  3837. sese.c (iv_stack_entry_is_constant): Removed.
  3838. (iv_stack_entry_is_iv): Removed.
  3839. (loop_iv_stack_push_iv): Removed.
  3840. (loop_iv_stack_insert_constant): Removed.
  3841. (loop_iv_stack_pop): Removed.
  3842. (loop_iv_stack_get_iv): Removed.
  3843. (loop_iv_stack_get_iv_from_name): Removed.
  3844. (debug_loop_iv_stack): Removed.
  3845. (free_loop_iv_stack): Removed.
  3846. (loop_iv_stack_remove_constants): Removed. *
  3847. sese.h (iv_stack_entry_kind): Removed.
  3848. (iv_stack_entry_data_union): Removed.
  3849. (iv_stack_entry_struct): Removed.
  3850. (iv_stack_entry_p): Removed.
  3851. (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
  3852. loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
  3853. loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
  3854. loop_iv_stack_pop, free_loop_iv_stack): Removed.
  3855. (gbb_loop_at_index): Fix indenting.
  3856. (gbb_loop_index): Removed.
  3857. 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
  3858. * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
  3859. Call clast_name_to_index.
  3860. 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
  3861. * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
  3862. do not pass params. Get params from SESE_PARAMS.
  3863. (clast_to_gcc_expression): Same.
  3864. (clast_to_gcc_expression_red): Same.
  3865. (gcc_type_for_clast_eq): Same.
  3866. (graphite_translate_clast_equation): Same.
  3867. (graphite_create_new_loop): Same.
  3868. * sese.c (rename_variables_in_stmt): Fix comment.
  3869. 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
  3870. * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
  3871. newivs_index.
  3872. Call save_clast_name_index.
  3873. (translate_clast): Pass newivs_index.
  3874. (gloog): Create and free newivs_index.
  3875. 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
  3876. * graphite-clast-to-gimple.c (clast_name_index): New structure.
  3877. (clast_name_index_p): New type.
  3878. (debug_clast_name_index): New.
  3879. (debug_clast_name_indexes_1): New.
  3880. (debug_clast_name_indexes): New.
  3881. (clast_name_index_elt_info): New.
  3882. (eq_clast_name_indexes): New.
  3883. (clast_name_to_index): New.
  3884. (new_clast_name_index): New.
  3885. (save_clast_name_index): New.
  3886. (init_sese_params_index): New.
  3887. (gloog): Call init_sese_params_index.
  3888. * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
  3889. * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
  3890. (free_sese): Free SESE_PARAMS_INDEX.
  3891. * sese.h (struct sese): Add params_index.
  3892. (SESE_PARAMS_INDEX): New.
  3893. 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
  3894. * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
  3895. (graphite_create_new_loop): Pass the newivs vector. Push the
  3896. newly created IV to newivs.
  3897. (translate_clast): Pass the newivs vector.
  3898. (gloog): Create and destroy the newivs vector.
  3899. 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
  3900. * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
  3901. (graphite_loop_normal_form): Initialize loop->aux with the unique
  3902. IV that has been created.
  3903. 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
  3904. * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
  3905. scev with parameters in the base part. They where forbidden
  3906. exidently.
  3907. 2009-05-11 Li Feng <nemokingdom@gmail.com>
  3908. * gcc.dg/graphite/graphite.exp: Set different default
  3909. compile options by file names.
  3910. * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
  3911. * gcc.dg/graphite/id-{1-9}.c: Ditto.
  3912. * gcc.dg/graphite/scop-{0-20}.c: Ditto.
  3913. * gcc.dg/graphite/scop-matmult.c: Ditto.
  3914. 2009-05-08 Li Feng <nemokingdom@gmail.com>
  3915. * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
  3916. * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
  3917. * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
  3918. * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
  3919. 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
  3920. * graphite-scop-detection (build_scops_1): Fix little bug introduced
  3921. by final cleanup.
  3922. 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
  3923. * graphite-scop-detection.c (graphite_can_represent_scev): Only
  3924. allow integer constant strides.
  3925. (graphite_can_represent_expr): Depend on outermost_loop.
  3926. (stmt_simple_memref_p, graphite_cannot_represent_loop,
  3927. harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
  3928. build_scops_1): Same.
  3929. (scopdet_basic_block_info): Same and insert layered SCoP
  3930. detection.
  3931. (try_generate_gimple_bb): Cleanup.
  3932. (build_scops): Enable data references.
  3933. * gcc.dg/graphite/id-5.c: New.
  3934. * gcc.dg/graphite/id-9.c: New.
  3935. * tree-chrec.c (evolution_function_right_is_integer_cst): New.
  3936. * tree-chrec.h (evolution_function_right_is_integer_cst): New.
  3937. 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
  3938. * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
  3939. that we have not yet built for this SCoP.
  3940. 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
  3941. * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
  3942. for complex numbers.
  3943. 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
  3944. * graphite-ppl.c: Fix build if cloog is not available.
  3945. 2009-05-04 Li Feng <nemokingdom@gmail.com>
  3946. * tree-parloops.c (loop_parallel_p): Remove construction of
  3947. NITER and REDUCTION_LIST.
  3948. (try_get_loop_niter): New.
  3949. (try_create_reduction_list): New.
  3950. (parallelize_loops): Bypass the failed checkings in autopar
  3951. when can_be_parallel in loop structure is set to true.
  3952. 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
  3953. * gcc.dg/graphite/id-6.c: Update testcase.
  3954. * gcc.dg/graphite/scop-3.c: Dito.
  3955. 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
  3956. * graphite-scop-detection.c (stmt_simple_for_scop_p):
  3957. Enable EQ_EXPR and NE_EXPR again.
  3958. 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
  3959. * graphite-scop-detection.c (graphite_can_represent_scev):
  3960. Add check if scev is affine multivariate.
  3961. (harmful_stmt_in_bb): Check if we can represent the conditions.
  3962. (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
  3963. harmful_stmt_in_bb.
  3964. * gcc.dg/graphite/id-7.c: New.
  3965. 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
  3966. * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
  3967. Check all bbs in region, not only the bbs that are represented in
  3968. GRAPHITE.
  3969. (build_poly_scop): Add newline.
  3970. * gcc.dg/graphite/id-8.c: New.
  3971. 2009-04-30 Li Feng <nemokingdom@gmail.com>
  3972. * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
  3973. when loop initialize.
  3974. * cfgloop.h (struct loop): Introduce flag can_be_parallel.
  3975. * common.opt: Declare flag_graphite_force_parallel.
  3976. * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
  3977. loop parallel.
  3978. * graphite-poly.c (apply_poly_transforms): Introduce
  3979. flag_graphite_force_parallel.
  3980. * tree-ssa-loop.c (gate_graphite_transforms): ditto.
  3981. * toplev.c (process_options): ditto and replace a not correctly
  3982. encoded space.
  3983. 2009-04-30 Li Feng <nemokingdom@gmail.com>
  3984. * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
  3985. Change the call of gbb_loop_at_index and/or gbb_loop_index due
  3986. to the redefinition.
  3987. (compute_cloog_iv_types_1): ditto.
  3988. (build_iv_mapping): ditto.
  3989. * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
  3990. initialization.
  3991. (free_gimple_bb): Removed GBB_LOOPS related free part.
  3992. (build_bb_loops): Removed.
  3993. * sese.h (struct gimple_bb): Removed loops.
  3994. (GBB_LOOPS): Removed.
  3995. (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
  3996. (gbb_loop_index): ditto.
  3997. 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
  3998. * graphite-scop-detection.c (graphite_can_represent_scev): Do not
  3999. allow non constant strides.
  4000. * gcc.dg/graphite/scop-20.c: New.
  4001. 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
  4002. * graphite-scop-detection.c (dot_all_scops): Fix system call
  4003. return value warning.
  4004. (dot_scop): Same.
  4005. 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
  4006. * gcc.dg/graphite/id-6.c: Fix pattern.
  4007. * gcc.dg/graphite/scop-3.c: Same.
  4008. 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
  4009. * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
  4010. build_pairwise_constraint, dr_equality_constraints,
  4011. build_pairwise_scheduling_equality,
  4012. build_pairwise_scheduling_inequality, lexicographically_gt_p,
  4013. build_lexicographically_gt_constraint, dependence_polyhedron,
  4014. graphite_legal_transform_dr, graphite_legal_transform_bb,
  4015. graphite_legal_transform): New.
  4016. * graphite-poly.h (graphite_legal_transform): Declared.
  4017. * graphite-sese-to-poly.c (build_poly_scop): Call to
  4018. graphite_legal_transform is disabled for the moment.
  4019. 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
  4020. * graphite-poly.h (pbb_nb_scattering_dims): New.
  4021. (pbb_nb_scattering): Use it.
  4022. 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
  4023. * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
  4024. Pointset_Powerset version of ppl_insert_dimensions.
  4025. * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
  4026. 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
  4027. * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
  4028. 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
  4029. * graphite-poly.h: Fix comment.
  4030. 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
  4031. * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
  4032. 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
  4033. * sese.c (expand_scalar_variables_stmt): Only iterate over the old
  4034. statements.
  4035. 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
  4036. * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
  4037. (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
  4038. conditions.
  4039. 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
  4040. * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
  4041. handle EQ_EXPR and NE_EXPR.
  4042. 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
  4043. * graphite-poly.h (poly_dr): Fix comment.
  4044. 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
  4045. Tobias Grosser <grosser@fim.uni-passau.de>
  4046. * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
  4047. with a zero dimension polyhedron.
  4048. (find_scop_parameters): Move the call to scop_set_nb_params here.
  4049. (build_loop_iteration_domains): Store in loop->aux the iteration
  4050. domain polyhedron.
  4051. (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
  4052. by any loop in scop.
  4053. (build_poly_scop): Do not call scop_set_nb_params.
  4054. 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
  4055. Tobias Grosser <grosser@fim.uni-passau.de>
  4056. * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
  4057. add_condition_to_domain not GT_EXPR.
  4058. 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
  4059. * graphite-ppl.c (debug_ppl_powerset_matrix): New.
  4060. * graphite-ppl.h (debug_ppl_powerset_matrix): New.
  4061. * graphite-sese-to-poly.c (add_condition_to_pbb): Use
  4062. upper_bound_assign to calculate unions.
  4063. * gcc.dg/graphite/id-6.c: New.
  4064. 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
  4065. * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
  4066. handle abnormal edges.
  4067. 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
  4068. * graphite-poly.c (new_poly_dr, free_poly_dr): New.
  4069. (free_poly_bb): Also free poly_drs.
  4070. * graphite-poly.h (new_poly_dr, free_poly_dr): New.
  4071. (poly_dr): Polyhedron to Pointset_Powerset.
  4072. (pdr_accessp_nb_subscripts): Same.
  4073. * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
  4074. poly_drs.
  4075. 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
  4076. * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
  4077. names into more meaningful names.
  4078. 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
  4079. * gfortran.dg/graphite/interchange-1.c: New.
  4080. * gfortran.dg/graphite/interchange-2.c: New.
  4081. 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
  4082. * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
  4083. the reduction_list.
  4084. * tree-parloops.c (rewrite_phi_with_iv): New.
  4085. (rewrite_all_phi_nodes_with_iv): New.
  4086. (canonicalize_loop_ivs): Call them.
  4087. 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
  4088. * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
  4089. graphite_find_data_references_in_stmt.
  4090. * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
  4091. * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
  4092. 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
  4093. * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
  4094. 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
  4095. * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
  4096. instead of bb_in_region.
  4097. (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
  4098. (build_sese_conditions): Use flag_bb_in_sese.
  4099. * sese.c (register_bb_in_sese): Removed.
  4100. (new_sese): Remove initialization of SESE_REGION_BBS.
  4101. (free_sese): Do not free SESE_REGION_BBS.
  4102. * sese.h (struct sese): Remove field region_basic_blocks.
  4103. (SESE_REGION_BBS): Removed.
  4104. (bb_in_sese_p): Implement in function of bb_in_region.
  4105. 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
  4106. * graphite-scop-detection.c (limit_scops): Deal only with single exit
  4107. loops.
  4108. 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
  4109. * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
  4110. and EQ_EXPR.
  4111. * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
  4112. (add_condition_to_domain): New.
  4113. (add_condition_to_pbb): New.
  4114. (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
  4115. * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
  4116. 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
  4117. * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
  4118. ppl_Pointset_Powerset.
  4119. * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
  4120. * graphite-poly.h (poly_bb): poly_bb.domain Same.
  4121. (pbb_nb_loops): Same.
  4122. * graphite-sese-to-poly.c (build_loop_iteration_domains,
  4123. add_conditions_to_domain): Same.
  4124. * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
  4125. (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
  4126. ppl_const_Polyhedron_t.
  4127. (ppl_print_powerset_matrix): New.
  4128. * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
  4129. ppl_print_powerset_matrix): New.
  4130. (ppl_print_polyhedron_matrix): Updated.
  4131. 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
  4132. * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
  4133. 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
  4134. * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
  4135. (print_iteration_domains, debug_iteration_domain,
  4136. debug_iteration_domains): New.
  4137. * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
  4138. debug_iteration_domains): Declared.
  4139. * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
  4140. indenting.
  4141. 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
  4142. Sebastian Pop <sebastian.pop@amd.com>
  4143. * graphite-poly.h (print_iteration_domain): New.
  4144. * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
  4145. (build_sese_conditions_1, build_sese_conditions_after,
  4146. build_sese_conditions_before): New.
  4147. (build_sese_conditions): Rewritten.
  4148. 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
  4149. Tobias Grosser <grosser@fim.uni-passau.de>
  4150. Cleanup of code generation liveouts.
  4151. * graphite-clast-to-gimple.c (translate_clast): Use a single
  4152. rename_map instead of one per translated statement.
  4153. Do not use SESE_LIVEOUT_RENAMES.
  4154. (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
  4155. (gloog): Do not use SESE_LIVEOUT_RENAMES.
  4156. * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
  4157. phi node of a reduction: when a loop contains a reduction used outside
  4158. the loop, there should be a scalar close phi node on the exit block.
  4159. * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
  4160. SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
  4161. (free_sese): Do not free them.
  4162. (sese_build_liveouts_use): Do not use them.
  4163. (sese_build_liveouts_bb): Same.
  4164. (sese_build_liveouts): Same.
  4165. (sese_insert_phis_for_liveouts): Same.
  4166. (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
  4167. (defined_in_loop_p): New.
  4168. (alive_after_loop): New.
  4169. (close_phi_not_yet_inserted_p): New.
  4170. (struct alep, alep_p): New.
  4171. (add_loop_exit_phis): Remove from the rename_map all the names defined
  4172. in the code generated loop.
  4173. (insert_loop_close_phis): Traverse the rename_map passed to it.
  4174. Don't use SESE_LIVEOUT_RENAMES.
  4175. (default_liveout_before_guard): Renamed default_before_guard.
  4176. (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
  4177. (graphite_copy_stmts_from_block): Do not directly call set_rename.
  4178. (register_sese_liveout_renames): Removed.
  4179. (copy_bb_and_scalar_dependences): Do not call it.
  4180. * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
  4181. reduction_list.
  4182. (SESE_LIVEOUT): Removed.
  4183. (SESE_LIVEOUT_RENAMES): Removed.
  4184. (SESE_REDUCTION_LIST): Removed.
  4185. (sese_build_liveouts): Removed.
  4186. (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
  4187. (insert_loop_close_phis): Pass a htab_t instead of a sese.
  4188. (insert_guard_phis): Same.
  4189. (rename_map_elt): Declare a VEC of them.
  4190. * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
  4191. trees not pointers to trees.
  4192. Rewrite in canonical close SSA form:
  4193. * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
  4194. (limit_scops): Close the scop after the block containing the close phi
  4195. nodes.
  4196. (canonicalize_loop_closed_ssa): New.
  4197. (canonicalize_loop_closed_ssa_form): New.
  4198. (build_scops): Call canonicalize_loop_closed_ssa_form.
  4199. * graphite-sese-to-poly.c: Fix typos.
  4200. 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
  4201. * graphite-poly.c (print_scattering_function, print_pbb_domain):
  4202. Extended.
  4203. (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
  4204. (print_pbb): Add conditions.
  4205. 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
  4206. Sebastian Pop <sebastian.pop@amd.com>
  4207. * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
  4208. * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
  4209. (build_scop_bbs_1): New.
  4210. (build_scop_bbs): Rewrite.
  4211. * sese.h (bb_in_region): New.
  4212. 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
  4213. * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
  4214. poly_drs vector.
  4215. (print_scop): Style.
  4216. * graphite-poly.h (poly_bb): Add drs vector.
  4217. (PBB_DRS): Add accessor.
  4218. * graphite-sese-to-poly.c (build_poly_dr): New.
  4219. (build_pbb_drs, build_scop_drs): New.
  4220. (build_poly_scop): call build_scop_drs (Disabled at the moment).
  4221. 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
  4222. * tree-ssa-loop.c: Include forgotten toplev.h
  4223. 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
  4224. * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
  4225. * gcc.dg/graphite/pr37883.c: Remove -floop-*
  4226. * gcc.dg/graphite/pr37928.c: Same
  4227. * gcc.dg/graphite/pr38409.c: Same
  4228. * gcc.dg/graphite/pr38498.c: Same
  4229. * gcc.dg/graphite/pr38559.c: Same
  4230. * gcc.dg/graphite/pr39335.c: Same
  4231. * gcc.dg/graphite/pr39335_1.c: Same
  4232. * gfortran.dg/graphite/block-2.f: Same
  4233. * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
  4234. with -floop-*.
  4235. 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
  4236. * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
  4237. build_access_matrix, build_scop_data_accesses): Remove access function
  4238. building. (We get a new version soon).
  4239. (build_bb_loops, scan_tree_for_params_right_scev): Update.
  4240. * sese.h (nb_loops_around_loop_in_sese): Remove.
  4241. (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
  4242. 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
  4243. Sebastian Pop <sebastian.pop@amd.com>
  4244. * graphite-scop-detection.c (struct scopdet_info): Rename last
  4245. field to exit.
  4246. (scopdet_basic_block_info, build_scops_1): Don't use
  4247. CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
  4248. 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
  4249. Sebastian Pop <sebastian.pop@amd.com>
  4250. * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
  4251. * sese.c (sese_build_liveouts_use): Renamed from
  4252. sese_build_livein_liveouts_use. Remove liveins.
  4253. (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
  4254. Call sese_build_liveouts_use.
  4255. (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
  4256. Call sese_build_liveouts_bb.
  4257. (new_sese, free_sese): Remove liveins.
  4258. (sese_add_exit_phis_var): Deleted.
  4259. (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
  4260. directly.
  4261. (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
  4262. * sese.h (sese): Remove num_ver and livein.
  4263. (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
  4264. 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
  4265. * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
  4266. 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
  4267. * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
  4268. (build_scop_scattering): Do not use compare_prefix_loops any more.
  4269. (nb_common_loops): New.
  4270. 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
  4271. * sese.c (get_new_name_from_old_name): Renamed get_rename.
  4272. (register_old_and_new_names): Renamed set_rename.
  4273. 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
  4274. * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
  4275. of the decl from the previous commit.
  4276. 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
  4277. * graphite-scop-detection.c (dot_scop): New.
  4278. * graphite-scop-detection.h (dot_scop): Declared.
  4279. 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
  4280. * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
  4281. 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
  4282. * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
  4283. condition at the end of the loop.
  4284. * graphite.c (graphite_initialize, graphite_finalize): Print to
  4285. dump_file the compiled function.
  4286. * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
  4287. of create_empty_loop_on_edge.
  4288. (translate_clast): Update the code generation of loops for the new
  4289. shape of loops.
  4290. * cfgloop.h (create_empty_loop_on_edge): Update declaration.
  4291. 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
  4292. Reverted the patch from 2009-03-19.
  4293. 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
  4294. * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
  4295. poly_drs vector.
  4296. (print_scop): Style.
  4297. * graphite-poly.h (poly_bb): Add drs vector.
  4298. (PBB_DRS): Add accessor.
  4299. * graphite-sese-to-poly.c (ref_nb_loops): Remove.
  4300. (build_access_matrix_with_af, build_access_matrix,
  4301. build_scop_data_accesses): Delete.
  4302. (build_poly_dr): New.
  4303. (build_pbb_drs, build_scop_drs): New.
  4304. (build_poly_scop): call build_scop_drs.
  4305. 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
  4306. * graphite-scop-detection.c (dot_all_scops_1): Close the table
  4307. once per basic block.
  4308. 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
  4309. * graphite-scop-detection.c (graphite_can_represent_scev): New.
  4310. (graphite_can_represent_expr): Renamed from loop_affine_expr
  4311. and enhanced.
  4312. (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
  4313. (graphite_cannot_represent_loop): Add scop_entry to parameters.
  4314. (scopdet_basic_block_info): Actually define entry_block.
  4315. (stmt_simple_memref_p): Moved here from ...
  4316. * tree-data-ref.c (stmt_simple_memref_p): here.
  4317. * tree-data-ref.h (stmt_simple_memref_p): Removed.
  4318. 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
  4319. * gcc.dg/graphite/id-4.c: New.
  4320. 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
  4321. * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
  4322. (register_old_and_new_names): Update the content of the map.
  4323. When there was already a rename_map_elt in the map at that
  4324. location, free it.
  4325. (copy_bb_and_scalar_dependences): Do rename_variables after
  4326. expand_scalar_variables.
  4327. * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
  4328. of the map. When there was already a rename_map_elt in the
  4329. map at that location, free it.
  4330. (translate_clast): Pass the rename_map. Do not initialize and free
  4331. a rename_map per stmt_user.
  4332. (gloog): Initialize and free one rename_map and pass it to
  4333. translate_clast.
  4334. 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
  4335. * sese.c (expand_scalar_variables_stmt,
  4336. expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
  4337. parameter.
  4338. (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
  4339. (expand_scalar_variables): Pass to expand_scalar_variables_stmt
  4340. the gimple_stmt_iterator of the statement to be expanded.
  4341. * graphite-scop-detection.c (is_simple_operand): Do handle
  4342. REALPART_EXPR.
  4343. 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
  4344. * graphite-scop-detection.c (is_simple_operand): Do not handle
  4345. REALPART_EXPR.
  4346. * gcc.dg/graphite/id-2.c: New.
  4347. * graphite-sese-to-poly.c (build_bb_loops,
  4348. add_value_to_dim, scan_tree_for_params_right_scev,
  4349. scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
  4350. find_params_in_bb, build_loop_iteration_domains,
  4351. add_conditions_to_domain): Remove subtract.
  4352. 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
  4353. * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
  4354. build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
  4355. pbb_loop_at_index -> gbb_loop_at_index.
  4356. * graphite-poly.c (new_poly_bb, new_scop): New accessors.
  4357. (debug_loop_vec): Delete.
  4358. * graphite-poly.h (poly_bb, scop): Change black_box and region to void
  4359. pointer. Move LOOPS to gimple_bb_p and insert nb_params.
  4360. (PBB_LOOPS): Removed.
  4361. (PBB_BLACK_BOX): Insert cast.
  4362. (pbb_set_black_box): New setter.
  4363. (pbb_loop_at_index, pbb_loop_index): Removed.
  4364. (scop_set_region, scop_set_nb_params): New.
  4365. * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
  4366. build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
  4367. (build_poly_scop): Use scop_set_nb_params.
  4368. * sese.h (gimple_bb): Add LOOPS.
  4369. (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
  4370. 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
  4371. Revert previous commit.
  4372. 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
  4373. * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
  4374. (register_old_and_new_names): Update the content of the map.
  4375. When there was already a rename_map_elt in the map at that
  4376. location, free it.
  4377. (copy_bb_and_scalar_dependences): Do rename_variables after
  4378. expand_scalar_variables.
  4379. * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
  4380. of the map. When there was already a rename_map_elt in the
  4381. map at that location, free it.
  4382. (translate_clast): Pass the rename_map. Do not initialize and free
  4383. a rename_map per stmt_user.
  4384. (gloog): Initialize and free one rename_map and pass it to
  4385. translate_clast.
  4386. 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
  4387. Remove forgotten line in revert.
  4388. 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
  4389. Revert previous commit.
  4390. 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
  4391. * sese.c (register_old_and_new_names): Update the content
  4392. of the map. When there was already a rename_map_elt in the
  4393. map at that location, free it.
  4394. (copy_bb_and_scalar_dependences): Do rename_variables after
  4395. expand_scalar_variables.
  4396. * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
  4397. of the map. When there was already a rename_map_elt in the
  4398. map at that location, free it.
  4399. (translate_clast): Pass the rename_map. Do not initialize and free
  4400. a rename_map per stmt_user.
  4401. (gloog): Initialize and free one rename_map and pass it to
  4402. translate_clast.
  4403. 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
  4404. * graphite-clast-to-gimple.c (translate_clast): context_loop
  4405. is never NULL.
  4406. 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
  4407. Sebastian Pop <sebastian.pop@amd.com>
  4408. * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
  4409. of the use of ppl_Polyhedron_map_space_dimensions.
  4410. 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
  4411. Sebastian Pop <sebastian.pop@amd.com>
  4412. * graphite-poly.c (unify_scattering_dimensions): Fix types.
  4413. * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
  4414. PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
  4415. pdr_accessp_nb_iterators, pdr_accessp_nb_params,
  4416. pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
  4417. pdr_accessp_iterator_dim, pdr_accessp_param_dim,
  4418. pbb_nb_params): New.
  4419. (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
  4420. nb_loops_around_pbb): Adapt return types.
  4421. 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
  4422. * Makefile.in (graphite.o, graphite-sese-to-poly.o,
  4423. graphite-clast-to-gimple.o, graphite-data-ref.o,
  4424. graphite-scop-detection.o, graphite-poly.o): Add
  4425. more headers.
  4426. 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
  4427. * Makefile.in (graphite.o, graphite-sese-to-poly.o,
  4428. graphite-clast-to-gimple.o, graphite-data-ref.o,
  4429. graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
  4430. 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
  4431. * gcc.dg/graphite/pr37485.c: Remove -floop-block
  4432. * gcc.dg/graphite/pr37828.c: Same.
  4433. * gcc.dg/graphite/pr37684.c: Same.
  4434. * gcc.dg/graphite/block-0.c: Same.
  4435. * gcc.dg/graphite/block-1.c: Same.
  4436. * gcc.dg/graphite/block-2.c: Same.
  4437. * gcc.dg/graphite/block-3.c: Same.
  4438. * gcc.dg/graphite/block-4.c: Same.
  4439. * gcc.dg/graphite/block-5.c: Same.
  4440. * gcc.dg/graphite/block-6.c: Same.
  4441. * gfortran.dg/graphite/pr38083.f90: Same.
  4442. * gfortran.dg/graphite/block-1.f90: Same.
  4443. * gfortran.dg/graphite/block-3.f90: Same.
  4444. * gfortran.dg/graphite/pr37852.f90: Same.
  4445. * gfortran.dg/graphite/block-4.f90: Same.
  4446. * gfortran.dg/graphite/pr37980.f90: Same.
  4447. * gfortran.dg/graphite/pr38953.f90: Same.
  4448. * gfortran.dg/graphite/pr37857.f90: Same.
  4449. * opts.c: Remove -floop-block from -O2.
  4450. * graphite-poly.c: Fail if -floop-block -floop-interchange or
  4451. -floop-strip-mine are used.
  4452. 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
  4453. Sebastian Pop <sebastian.pop@amd.com>
  4454. * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
  4455. dimensions.
  4456. * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
  4457. graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
  4458. strip_mine_profitable_p, is_interchange_valid,
  4459. graphite_trans_bb_block, graphite_trans_loop_block,
  4460. graphite_trans_scop_block): Temporary removed.
  4461. (extend_scattering, unify_scattering_dimensions): New.
  4462. (print_scattering_function, graphite_read_transforms):
  4463. PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
  4464. (graphite_generate_scattering_fns): Removed.
  4465. (apply_poly_transforms): Cleanup.
  4466. (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
  4467. (schedule_to_scattering): Moved.
  4468. (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
  4469. (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
  4470. (pbb_nb_scattering): New.
  4471. (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
  4472. SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
  4473. Removed.
  4474. * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
  4475. shift_poly.
  4476. (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
  4477. * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
  4478. -> PBB_TRANSFORMED_SCATTERING.
  4479. * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
  4480. (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
  4481. (build_scop_scattering): Renamed from build_scop_canonical_schedules.
  4482. (check_poly_representation): Do not return bool.
  4483. (graphite_transform_loops): Reformat.
  4484. * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
  4485. 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
  4486. * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
  4487. debug_pbb_domain, debug_pbb, debug_scop): New.
  4488. * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
  4489. debug_pbb_domain, debug_pbb, debug_scop): Declared.
  4490. 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
  4491. PR middle-end/39335
  4492. * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
  4493. when the type precision of the induction variable should be
  4494. larger than the type precision of nit.
  4495. (gen_parallel_loop): Update use of canonicalize_loop_ivs.
  4496. * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
  4497. * tree-flow.h (canonicalize_loop_ivs): Update declaration.
  4498. * gcc.dg/graphite/pr39335_1.c: New.
  4499. * gcc.dg/graphite/pr39335.c: New.
  4500. 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
  4501. * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
  4502. SSA_NAMES not struct reduction_info.
  4503. 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
  4504. * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
  4505. 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
  4506. Tobias Grosser <grosser@fim.uni-passau.de>
  4507. * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
  4508. (free_sese): Free SESE_REDUCTION_LIST.
  4509. * sese.h (struct sese): Add field reduction_list.
  4510. (SESE_REDUCTION_LIST): New.
  4511. * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
  4512. canonicalize_loop_ivs on SESE_REDUCTION_LIST.
  4513. 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
  4514. Tobias Grosser <grosser@fim.uni-passau.de>
  4515. * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
  4516. of loop_p.
  4517. 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
  4518. Tobias Grosser <grosser@fim.uni-passau.de>
  4519. * tree-parloops.c (struct brli, build_reduction_list_info,
  4520. analyze_reduction_list, gather_scalar_reductions): New.
  4521. (loop_parallel_p): Build a reduction list containing only
  4522. PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
  4523. (gen_parallel_loop): Call the analysis analyze_reduction_list.
  4524. (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
  4525. * tree-flow.h (gather_scalar_reductions): Declared.
  4526. 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
  4527. PR middle-end/39308
  4528. * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
  4529. number_of_iterations_exit from a gcc_assert.
  4530. 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
  4531. Jan Sjodin <jan.sjodin@amd.com>
  4532. * output.h (graphite_out_file, graphite_in_file): Declared.
  4533. * toplev.c (graphite_out_file, graphite_in_file): New.
  4534. (init_asm_output): Initialize graphite_in_file and graphite_out_file.
  4535. * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
  4536. Don't call schedule_to_scattering.
  4537. * common.opt (fgraphite-write, fgraphite-read): New.
  4538. * graphite-poly.c: Include output.h.
  4539. (print_scattering_function, print_scattering_functions,
  4540. debug_scattering_function, debug_scattering_functions,
  4541. graphite_write_transforms, graphite_read_transforms,
  4542. graphite_generate_scattering_fns): New.
  4543. (apply_poly_transforms): Do not apply transform if flag_graphite_read.
  4544. Call graphite_generate_scattering_fns, graphite_write_transforms,
  4545. graphite_read_transforms.
  4546. (new_poly_bb): Initialize PBB_SCATTERING.
  4547. (free_poly_bb): Free PBB_SCATTERING.
  4548. (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
  4549. * graphite-poly.h (struct poly_bb): Add field scattering.
  4550. (PBB_SCATTERING): New.
  4551. (print_scattering_function, print_scattering_functions,
  4552. debug_scattering_function, debug_scattering_functions): Declared.
  4553. * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
  4554. GMP values, not integers!
  4555. (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
  4556. ppl_read_polyhedron_matrix): New.
  4557. * graphite-ppl.h (ppl_print_polyhedron_matrix,
  4558. debug_ppl_polyhedron_matrix,
  4559. ppl_read_polyhedron_matrix): Declared.
  4560. * Makefile.in (graphite-poly.o): Depends on output.h.
  4561. 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
  4562. Tobias Grosser <grosser@fim.uni-passau.de>
  4563. Revert this change:
  4564. * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
  4565. scalar evolutions in the scop_entry->loop_father.
  4566. 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
  4567. Tobias Grosser <grosser@fim.uni-passau.de>
  4568. * graphite.h (ref_nb_loops): Remove declaration.
  4569. (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
  4570. GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
  4571. debug_gbb): Moved to sese.h.
  4572. * sese.h: As said.
  4573. 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
  4574. Tobias Grosser <grosser@fim.uni-passau.de>
  4575. * graphite-data-ref.[ch]: Disable.
  4576. 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
  4577. Tobias Grosser <grosser@fim.uni-passau.de>
  4578. * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
  4579. scalar evolutions in the scop_entry->loop_father.
  4580. 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
  4581. * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
  4582. (graphite_cannot_represent_loop_niter): Renamed
  4583. graphite_cannot_represent_loop. Call nb_reductions_in_loop.
  4584. (limit_scops): build_sese_loop_nests does not return a bool.
  4585. * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
  4586. * sese.c (nb_reductions_in_loop): ... from here.
  4587. (graphite_loop_normal_form): ... from here.
  4588. (sese_record_loop): Does not fail, so does not return a bool.
  4589. (build_sese_loop_nests): Same.
  4590. * sese.h (build_sese_loop_nests): Update declaration.
  4591. * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
  4592. (build_graphite_loop_normal_form): New.
  4593. (gloog): Call build_graphite_loop_normal_form.
  4594. * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
  4595. build_sese_loop_nests.
  4596. * gcc.dg/graphite/id-1.c: New.
  4597. 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
  4598. Tobias Grosser <grosser@fim.uni-passau.de>
  4599. * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
  4600. The SCoP detection fix is sufficient.
  4601. 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
  4602. PR tree-optimization/39260
  4603. * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
  4604. the basic block contains a condition with a real type.
  4605. * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
  4606. * gcc.dg/graphite/pr39260.c: New.
  4607. 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
  4608. * graphite-poly.c: Inlcude params.h.
  4609. (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
  4610. the size of a tile.
  4611. * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
  4612. * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
  4613. 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
  4614. Tobias Grosser <grosser@fim.uni-passau.de>
  4615. * graphite-scop-detection.c (dot_all_scops_1,
  4616. dot_all_scops): Moved here.
  4617. * graphite-scop-detection.h (dot_all_scops): Declared here.
  4618. * graphite.c (graphite_initialize, graphite_finalize): New.
  4619. (graphite_transform_loops): Cleaned up.
  4620. * sese.c (debug_oldivs): Moved here.
  4621. * graphite-poly.c (graphite_apply_transformations): Renamed
  4622. apply_poly_transforms.
  4623. (debug_loop_vec): Moved here.
  4624. * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
  4625. scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
  4626. find_scop_parameters, build_scop_iteration_domain,
  4627. add_conditions_to_constraints, build_scop_canonical_schedules,
  4628. build_scop_data_accesses): Now static.
  4629. (build_poly_scop, check_poly_representation): New.
  4630. 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
  4631. * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
  4632. remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
  4633. build_scop_bbs, ref_nb_loops, compare_prefix_loops,
  4634. build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
  4635. scan_tree_for_params_right_scev, scan_tree_for_params_int,
  4636. scan_tree_for_params, struct irp_data, dx_record_params,
  4637. find_params_in_bb, find_scop_parameters, gbb_from_bb,
  4638. build_loop_iteration_domains, add_conditions_to_domain,
  4639. phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
  4640. scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
  4641. build_sese_conditions, add_conditions_to_constraints,
  4642. build_scop_iteration_domain, build_access_matrix_with_af,
  4643. build_access_matrix,
  4644. build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
  4645. * graphite-sese-to-poly.c: New.
  4646. * graphite-sese-to-poly.h: New.
  4647. * Makefile.in: Add new rule for graphite-sese-to-poly.o.
  4648. 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
  4649. * graphite.c: Split graphite code generation to a new file.
  4650. (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
  4651. max_precision_type, clast_to_gcc_expression_red,
  4652. clast_to_gcc_expression, gcc_type_for_clast_expr,
  4653. gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
  4654. graphite_translate_clast_equation, graphite_create_guard_cond_expr,
  4655. graphite_create_new_guard, clast_get_body_of_loop,
  4656. gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
  4657. graphite_create_new_loop, build_iv_mapping, copy_renames,
  4658. translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
  4659. compute_cloog_iv_types, free_scattering, save_var_name,
  4660. initialize_cloog_names, build_scop_context, build_cloog_prog,
  4661. set_cloog_options, debug_clast_stmt, scop_to_clast,
  4662. print_generated_program, debug_generated_program,
  4663. gloog): Moved to graphite-clast-to-gimple.c.
  4664. (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
  4665. (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
  4666. loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
  4667. loop_iv_stack_pop, loop_iv_stack_get_iv,
  4668. loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
  4669. free_loop_iv_stack, loop_iv_stack_remove_constants,
  4670. debug_rename_elt, debug_rename_map_1, debug_rename_map,
  4671. rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
  4672. debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
  4673. eq_ivtype_map_elts, sese_add_exit_phis_edge,
  4674. sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
  4675. get_vdef_before_sese, sese_adjust_vphi,
  4676. get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
  4677. oldiv_for_loop, rename_variables_in_stmt, is_parameter,
  4678. is_iv, expand_scalar_variables_ssa_name,
  4679. expand_scalar_variables_expr, expand_scalar_variables_stmt,
  4680. expand_scalar_variables, rename_variables, remove_condition,
  4681. get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
  4682. add_loop_exit_phis, insert_loop_close_phis, struct igp,
  4683. default_liveout_before_guard, add_guard_exit_phis,
  4684. insert_guard_phis, register_old_and_new_names,
  4685. graphite_copy_stmts_from_block, register_sese_liveout_renames,
  4686. copy_bb_and_scalar_dependences, outermost_loop_in_sese,
  4687. if_region_set_false_region, create_if_region_on_edge,
  4688. move_sese_in_condition): Moved to sese.c.
  4689. (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
  4690. if_region_exit, if_region_get_condition_block,
  4691. struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
  4692. union iv_stack_entry_data_union, struct iv_stack_entry_struct,
  4693. iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
  4694. ivtype_map_elt, new_ivtype_map_elt,
  4695. recompute_all_dominators): Moved to sese.h.
  4696. * graphite-clast-to-gimple.c: New.
  4697. * graphite-clast-to-gimple.h: New.
  4698. * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
  4699. * sese.c: Modified as said above.
  4700. * sese.h: Same.
  4701. 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
  4702. * graphite.c: Split scop detection to a new file.
  4703. (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
  4704. move_sd_regions, loop_affine_expr, exclude_component_ref,
  4705. is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
  4706. graphite_cannot_represent_loop_niter, struct scopdet_info,
  4707. scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
  4708. find_single_entry_edge, find_single_exit_edge,
  4709. create_single_entry_edge, sd_region_without_exit,
  4710. create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
  4711. create_sese_edges, build_graphite_scops, limit_scops, build_scops):
  4712. Moved to graphite-scop-detection.c.
  4713. * graphite-scop-detection.c: New.
  4714. * graphite-scop-detection.h: New.
  4715. * Makefile.in: Add new rule for graphite-scop-detection.o.
  4716. * sese.c: Include tree-chrec.h, tree-data-ref.h, and
  4717. tree-scalar-evolution.h.
  4718. (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
  4719. build_sese_loop_nests): Moved here from graphite.c.
  4720. (param_index): Renamed parameter_index_in_region.
  4721. 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
  4722. Sebastian Pop <sebastian.pop@amd.com>
  4723. * gcc.dg/graphite/block-0.c: Expected to fail now.
  4724. * gcc.dg/graphite/block-1.c: Same.
  4725. * gcc.dg/graphite/block-5.c: Same.
  4726. * gcc.dg/graphite/block-6.c: Same.
  4727. 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
  4728. Sebastian Pop <sebastian.pop@amd.com>
  4729. * graphite.h: Separate from graphite_bb_p the polyhedral
  4730. representation in poly_bb_p and the GCC specifics in gimple_bb_p.
  4731. (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
  4732. graphite-data-ref.h.
  4733. (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
  4734. PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
  4735. pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
  4736. SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
  4737. SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
  4738. scop_nb_params): Moved to graphite-poly.h.
  4739. * graphite-data-ref.c: Same.
  4740. * graphite-data-ref.h: New.
  4741. * graphite.c: Same.
  4742. (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
  4743. graphite_trans_bb_strip_mine, strip_mine_profitable_p,
  4744. is_interchange_valid, graphite_trans_bb_block,
  4745. graphite_trans_loop_block, scop_max_loop_depth,
  4746. graphite_trans_scop_block, graphite_apply_transformations,
  4747. new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
  4748. graphite-poly.c.
  4749. * graphite-poly.h: New.
  4750. * graphite-poly.c: New.
  4751. * Makefile.in (OBJS-common): Add graphite-poly.o.
  4752. (graphite-poly.o): New rule.
  4753. * tree-data-ref.h (struct data_reference): Remove unused scop field.
  4754. (DR_SCOP): Removed.
  4755. 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
  4756. Tobias Grosser <grosser@fim.uni-passau.de>
  4757. * graphite.c: Replace gb -> gbb.
  4758. * graphite.h: Same.
  4759. * graphite-data-ref.c: Same.
  4760. 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
  4761. Tobias Grosser <grosser@fim.uni-passau.de>
  4762. * Makefile.in (OBJS-commmon): Add sese.o.
  4763. (sese.o): New.
  4764. (graphite.o): Add sese.h.
  4765. * graphite.c (bb_in_ss_p, loop_in_sese_p,
  4766. sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
  4767. sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
  4768. Move to sese.
  4769. (block_before_scop): Add missing return.
  4770. (new_scop, free_scop): Remove SESE data structures.
  4771. (scop_record_loop, scan_tree_for_params, find_params_in_bb,
  4772. find_scop_parameters, build_loop_iteration_domains,
  4773. add_conditions_to_domain, register_scop_liveout_renames,
  4774. copy_bb_and_scalar_dependences): Scop -> SESE.
  4775. (add_conditions_to_domain): SCoP -> SESE and remove check
  4776. (scop_contains_non_iv_scalar_phi_nodes): New.
  4777. (build_scop_conditions_1, build_scop_conditions): Remove check for
  4778. non iv scalar phi nodes.
  4779. (print_scop_statistics): New.
  4780. (graphite_transform_loops): Cleanup.
  4781. * graphite.h: Move to sese & cleanup.
  4782. * sese.c: New.
  4783. * sese.h: New.
  4784. 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
  4785. Tobias Grosser <grosser@fim.uni-passau.de>
  4786. * graphite.c (build_scop_conditions_1): Conditions are only
  4787. at the end of a basic block.
  4788. 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
  4789. Tobias Grosser <grosser@fim.uni-passau>
  4790. * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
  4791. field.
  4792. (GBB_ALPHA): Removed.
  4793. 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
  4794. Tobias Grosser <grosser@fim.uni-passau.de>
  4795. * graphite-data-ref.c (graphite_test_dependence): Don't use
  4796. GBB_DYNAMIC_SCHEDULE.
  4797. * graphite.c (new_graphite_bb): Same.
  4798. (free_graphite_bb): Same.
  4799. (build_scop_dynamic_schedules): Removed.
  4800. (graphite_transform_loops): Don't call it.
  4801. * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
  4802. (GBB_DYNAMIC_SCHEDULE): Removed.
  4803. 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
  4804. Tobias Grosser <grosser@fim.uni-passau.de>
  4805. * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
  4806. (print_graphite_bb): Same.
  4807. (build_cloog_prog): Same.
  4808. 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
  4809. Tobias Grosser <grosser@fim.uni-passau.de>
  4810. * graphite.c (build_cloog_prog): Don't use CloogMatrix.
  4811. 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
  4812. Tobias Grosser <grosser@fim.uni-passau.de>
  4813. * graphite.c (build_scop_context): Don't use CloogMatrix.
  4814. * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
  4815. * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
  4816. 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
  4817. Tobias Grosser <grosser@fim.uni-passau.de>
  4818. * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
  4819. liveout_renames, add_params fields...
  4820. (struct sese): ... here.
  4821. (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
  4822. SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
  4823. 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
  4824. Tobias Grosser <grosser@fim.uni-passau.de>
  4825. * graphite.c (print_scop): Do not print the CLooG program.
  4826. (new_scop, free_scop, initialize_cloog_names, build_scop_context,
  4827. build_cloog_prog, gloog): Don't use SCOP_PROG.
  4828. (find_transform): Renamed scop_to_clast.
  4829. (print_generated_program, debug_generated_program): New.
  4830. (graphite_transform_loops): Adapt to new interface.
  4831. * graphite.h (struct scop): Remove program field.
  4832. (SCOP_PROG): Removed.
  4833. (print_generated_program, debug_generated_program): Declared.
  4834. 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
  4835. * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
  4836. (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
  4837. * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
  4838. free_graphite_bb, build_scop_canonical_schedules,
  4839. graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
  4840. schedules are now represented using a ppl_Linear_Expression_t.
  4841. * graphite.h (struct graphite_bb): Same.
  4842. * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
  4843. * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
  4844. 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
  4845. * graphite.c: Free local memory.
  4846. * graphite-ppl.c: Same.
  4847. 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
  4848. * graphite.c (const_column_index, get_first_matching_sign_row_index,
  4849. get_lower_bound_row, get_upper_bound_row, copy_constraint,
  4850. swap_constraint_variables, scale_constraint_variable): Removed.
  4851. (graphite_trans_bb_strip_mine): Remove pong.
  4852. * graphite-ppl.c: Include missing header files.
  4853. (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
  4854. * graphite-ppl.h (ppl_strip_loop): Declared.
  4855. * Makefile.in (graphite-ppl.o): Adjust dependences.
  4856. 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
  4857. * graphite.c (build_loop_iteration_domains): Remove ping pong.
  4858. (build_scop_iteration_domain): Same.
  4859. 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
  4860. * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
  4861. ping pong.
  4862. (add_value_to_dim, scan_tree_for_params_right_scev,
  4863. scan_tree_for_params_int): New.
  4864. * graphite-ppl.c (oppose_constraint): New.
  4865. (insert_constraint_into_matrix): Implement missing cases.
  4866. * graphite-ppl.h (insert_constraint_into_matrix): Declared.
  4867. 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
  4868. * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
  4869. use ppl_move_dimension.
  4870. 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
  4871. * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
  4872. * graphite.c: Same.
  4873. * graphite.h: Same.
  4874. * graphite-ppl.c: Same.
  4875. * graphite-ppl.h: Same.
  4876. 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
  4877. Revert last 3 commits.
  4878. 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
  4879. * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
  4880. ping pong.
  4881. (add_value_to_dim, scan_tree_for_params_right_scev,
  4882. scan_tree_for_params_int): New.
  4883. * graphite-ppl.c (oppose_constraint): New.
  4884. (insert_constraint_into_matrix): Implement missing cases.
  4885. * graphite-ppl.h (insert_constraint_into_matrix): Declared.
  4886. 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
  4887. * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
  4888. 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
  4889. Tobias Grosser <grosser@fim.uni-passau.de>
  4890. * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
  4891. use ppl_move_dimension.
  4892. * graphite-ppl.c (ppl_move_dimension): New.
  4893. * graphite-ppl.h (ppl_move_dimension): Declared.
  4894. 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
  4895. * graphite.c: Do not include cloog/cloog.h.
  4896. (print_graphite_bb): Remove ping pong, call PPL print function.
  4897. 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
  4898. * Makefile.in (OBJS-common): Add graphite-ppl.o.
  4899. (graphite.o): Add dependence on graphite-ppl.h.
  4900. (graphite-ppl.o): New.
  4901. (graphite-data-ref.c): Ping pong between PPL data structures
  4902. and matrices.
  4903. * graphite-ppl.c: New.
  4904. * graphite-ppl.h: New.
  4905. * graphite.c: Include graphite-ppl.h.
  4906. (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
  4907. graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
  4908. Ping pong between PPL data structures and matrices.
  4909. (new_graphite_bb): Create a PPL constraint system.
  4910. Call ppl_delete_Constraint_System instead of cloog_matrix_free.
  4911. (build_loop_iteration_domains): Use PPL functions.
  4912. * graphite.h: Include graphite-ppl.h. Fix comments.
  4913. (graphite_bb): Use a ppl_Constraint_System_t instead of
  4914. CloogMatrix for representing the domain.
  4915. (scop): Remove static_schedule.
  4916. (gbb_nb_loops): Ping pong between PPL data structures and matrices.
  4917. 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
  4918. * graphite.c: Fix some comments.
  4919. 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
  4920. PR middle-end/38953
  4921. * graphite.c (if_region_set_false_region): After moving a region
  4922. in the false branch of a condition, remove the empty dummy
  4923. basic block.
  4924. (gloog): Remove wrong fix for PR38953.
  4925. 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
  4926. * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
  4927. sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
  4928. register_bb_in_sese, new_sese, free_sese): Moved.
  4929. (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
  4930. outermost_loop_in_scop, build_scop_iteration_domain,
  4931. expand_scalar_variables_ssa_name, get_vdef_before_scop,
  4932. limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
  4933. Use loop_in_sese_p instead of loop_in_scop_p.
  4934. (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
  4935. (free_scop): Do not free SCOP_BBS_B.
  4936. (nb_loops_around_loop_in_scop, nb_loops_around_gb,
  4937. ref_nb_loops): Moved here...
  4938. * graphite.h (ref_nb_loops): ... from here.
  4939. (struct scop): Remove bbs_b bitmap.
  4940. (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
  4941. * gcc.dg/graphite/scop-19.c: New
  4942. 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
  4943. * graphite.c (scopdet_basic_block_info): Fix bug in scop
  4944. detection.
  4945. 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
  4946. * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
  4947. eq_loop_to_cloog_loop): Remove.
  4948. (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
  4949. * graphite.h (struct scop): Remove loop2cloog_loop.
  4950. (loop_domain_dim, loop_iteration_vector_dim): Remove.
  4951. 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
  4952. * opts.c (decode_options): Only add graphite options to O2
  4953. if we compile with graphite enabled.
  4954. 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
  4955. * Merge from mainline (r143163:143684).
  4956. 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
  4957. * graphite.c (debug_value): Removed.
  4958. * graphite.h (debug_value): Removed.
  4959. 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
  4960. * passes.c (init_optimization_passes): Do not call pass_copy_prop
  4961. after graphite: pass_copy_prop does not maintain a proper loop closed
  4962. SSA form. pass_copy_prop should be fixed.
  4963. 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
  4964. * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
  4965. 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
  4966. * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
  4967. (gloog): Split the exit of the scop when the scop exit is a loop exit.
  4968. (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
  4969. changed the CFG.
  4970. 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
  4971. * graphite.c (gloog): Return true when code gen succeeded.
  4972. (graphite_transform_loops): Do not call cleanup_tree_cfg if
  4973. the code of the function did not changed. After cleanup_tree_cfg
  4974. call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
  4975. form.
  4976. 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
  4977. * graphite.c (stmt_simple_for_scop_p): Also handle cases when
  4978. gimple_call_lhs is NULL.
  4979. 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
  4980. Tobias Grosser <tobi.grosser@amd.com>
  4981. * graphite.c (graphite_trans_scop_block): Do not block single
  4982. nested loops.
  4983. 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
  4984. Tobias Grosser <tobi.grosser@amd.com>
  4985. * graphite.c (build_scop_canonical_schedules): Start schedules at
  4986. zero.
  4987. 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
  4988. Tobias Grosser <tobi.grosser@amd.com>
  4989. * graphite.c (compare_prefix_loops): New.
  4990. (build_scop_canonical_schedules): Rewritten.
  4991. (graphite_transform_loops): Move build_scop_canonical_schedules
  4992. after build_scop_iteration_domain.
  4993. 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
  4994. Tobias Grosser <tobi.grosser@amd.com>
  4995. * graphite.c (add_conditions_to_domain): Add the loops to
  4996. the dimension of the iteration domain. Do copy the domain
  4997. only when it exists.
  4998. (build_scop_conditions_1): Do not call add_conditions_to_domain.
  4999. (add_conditions_to_constraints): New.
  5000. (can_generate_code_stmt, can_generate_code): Removed.
  5001. (gloog): Do not call can_generate_code.
  5002. (graphite_transform_loops): Call add_conditions_to_constraints
  5003. after building the iteration domain.
  5004. 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
  5005. Tobias Grosser <tobi.grosser@amd.com>
  5006. Jan Sjodin <jan.sjodin@amd.com>
  5007. * graphite.c (scan_tree_for_params): On substractions negate
  5008. all the coefficients of the term.
  5009. (clast_to_gcc_expression_red): New. Handle reduction expressions
  5010. of more than two operands.
  5011. (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
  5012. (get_vdef_before_scop): Handle also the case of default definitions.
  5013. 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
  5014. PR middle-end/38431
  5015. * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
  5016. (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
  5017. (gloog): Do not call cleanup_tree_cfg.
  5018. (graphite_transform_loops): Call cleanup_tree_cfg after all
  5019. scops have been code generated.
  5020. 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
  5021. * passes.c (init_optimization_passes): Schedule after
  5022. graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
  5023. 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
  5024. * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
  5025. Fix comment.
  5026. (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
  5027. Set the type of an expression to the type of its assign statement.
  5028. (expand_scalar_variables_expr): Do not pass loop_p.
  5029. Fix comment. Stop recursion on tcc_constant or tcc_declaration.
  5030. (copy_bb_and_scalar_dependences): Do not pass loop_p.
  5031. (translate_clast): Update call to copy_bb_and_scalar_dependences.
  5032. 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
  5033. * graphite.c (expand_scalar_variables_ssa_name): Set the type of
  5034. an expression to the gimple_expr_type of its assign statement.
  5035. (expand_scalar_variables_expr): Stop recursion on tcc_constant
  5036. or tcc_declaration.
  5037. 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
  5038. PR tree-optimization/38786
  5039. * gcc.dg/graphite/pr38786.c: New.
  5040. * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
  5041. the SSA_NAME case of expand_scalar_variables_expr.
  5042. (expand_scalar_variables_expr): Also gather the scalar computation
  5043. used to index the memory access.
  5044. (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
  5045. the gimple_stmt_iterator where it inserts new code.
  5046. 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
  5047. * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
  5048. 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
  5049. * opts.c (decode_options): Enable flag_graphite_identity and
  5050. flag_loop_block in -O2 and above.
  5051. 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
  5052. * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
  5053. Fix merge problem: replace with the file from trunk.
  5054. 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
  5055. * Merge from mainline (r141727:143163).
  5056. 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
  5057. Jan Sjodin <jan.sjodin@amd.com>
  5058. PR tree-optimization/38559
  5059. * gcc.dg/graphite/pr38559.c: New.
  5060. * graphite.c (debug_value, copy_constraint,
  5061. swap_constraint_variables, scale_constraint_variable, ): New.
  5062. (get_lower_bound, get_upper_bound): Removed.
  5063. (graphite_trans_bb_strip_mine): Clean up this code that works
  5064. only for constant number of iterations. Fully copy upper and
  5065. lower bound constraints, not only the constant part of them.
  5066. * graphite.h (debug_value): Declared.
  5067. 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
  5068. PR tree-optimization/38492
  5069. PR tree-optimization/38498
  5070. * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
  5071. * tree-chrec.h (scev_is_linear_expression): Declared.
  5072. * graphite.c (graphite_cannot_represent_loop_niter): New.
  5073. (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
  5074. (graphite_loop_normal_form): Use gcc_assert.
  5075. (scan_tree_for_params): Use CASE_CONVERT.
  5076. (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
  5077. (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
  5078. Use gcc_assert. Discard scops that contain unhandled cases.
  5079. (build_scop_conditions): Return a boolean status for unhandled cases.
  5080. (strip_mine_profitable_p): Print the loop number, not its depth.
  5081. (is_interchange_valid): Pass the depth of the loop nest, don't
  5082. recompute it wrongly.
  5083. (graphite_trans_bb_block): Same.
  5084. (graphite_trans_bb_block): Print tentative of loop blocking.
  5085. (graphite_trans_scop_block): Do not print that the loop has been
  5086. blocked.
  5087. (graphite_transform_loops): Do not handle scops that contain condition
  5088. scalar phi nodes.
  5089. * gcc.dg/graphite/pr38500.c: Fixed warning as committed
  5090. in trunk.
  5091. * gcc.dg/graphite/block-0.c: Update test.
  5092. * gcc.dg/graphite/block-1.c: Same.
  5093. * gcc.dg/graphite/block-2.c: Remove xfail and test for
  5094. blocking.
  5095. * gcc.dg/graphite/block-4.c: Remove test for strip mine.
  5096. * gcc.dg/graphite/block-3.c: New.
  5097. * gcc.dg/graphite/pr38498.c: New.
  5098. 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
  5099. PR tree-optimization/38510
  5100. * gcc.dg/graphite/pr38510.c: New.
  5101. * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
  5102. (translate_clast): Call recompute_all_dominators before
  5103. graphite_verify.
  5104. (gloog): Call recompute_all_dominators before graphite_verify.
  5105. 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
  5106. PR tree-optimization/38492
  5107. * graphite.c (rename_map_elt, debug_rename_elt,
  5108. debug_rename_map_1, debug_rename_map, new_rename_map_elt,
  5109. rename_map_elt_info, eq_rename_map_elts,
  5110. get_new_name_from_old_name, bb_in_sese_p): Moved around.
  5111. (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
  5112. (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
  5113. (sese_build_livein_liveouts): New.
  5114. (new_sese, free_sese): New.
  5115. (new_scop): Call new_sese.
  5116. (free_scop): Call free_sese.
  5117. (rename_variables_from_edge, rename_phis_end_scop): Removed.
  5118. (register_old_new_names): Renamed register_old_and_new_names.
  5119. (register_scop_liveout_renames, add_loop_exit_phis,
  5120. insert_loop_close_phis, struct igp,
  5121. default_liveout_before_guard, add_guard_exit_phis,
  5122. insert_guard_phis, copy_renames): New.
  5123. (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
  5124. (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
  5125. (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
  5126. (scop_adjust_phis_for_liveouts): New.
  5127. (gloog): Call scop_adjust_phis_for_liveouts.
  5128. * graphite.h (struct sese): Documented. Added fields liveout,
  5129. num_ver and livein.
  5130. (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
  5131. (new_sese, free_sese, sese_build_livein_liveouts): Declared.
  5132. (struct scop): Added field liveout_renames.
  5133. (SCOP_LIVEOUT_RENAMES): New.
  5134. 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
  5135. PR tree-optimization/38409
  5136. * gcc.dg/graphite/pr38409.c: New.
  5137. * graphite.c (nb_reductions_in_loop): Use simple_iv.
  5138. 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
  5139. * graphite.c (gcc_type_for_cloog_iv): By default return
  5140. integer_type_node.
  5141. (graphite_create_new_loop): Don't fold_convert the already
  5142. fold_convert-ed expression.
  5143. 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
  5144. PR tree-optimization/38446
  5145. * gcc.dg/graphite/pr38446.c: New.
  5146. * graphite.c (register_bb_in_sese): New.
  5147. (bb_in_sese_p): Check if bb belongs to sese region by explicitly
  5148. looking at the bbs in the region.
  5149. * graphite.h (sese): Add region_basic_blocks pointer set to
  5150. structure and initialize at the time of defining new scop.
  5151. 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
  5152. * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
  5153. (find_params_in_bb): Do not free data refs.
  5154. (free_graphite_bb): Add FIXME on disabled free_data_refs.
  5155. 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
  5156. * gcc.dg/graphite/scop-16.c: Test only scop specific info.
  5157. * gcc.dg/graphite/scop-17.c: Same.
  5158. * gcc.dg/graphite/block-5.c: New.
  5159. * gcc.dg/graphite/block-6.c: New.
  5160. * gcc.dg/graphite/pr37485.c: Clean dump file after.
  5161. * gcc.dg/graphite/pr37684.c: Same.
  5162. * gcc.dg/graphite/block-2.c: Same.
  5163. * graphite.c (struct ivtype_map_elt): New.
  5164. (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
  5165. new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
  5166. gcc_type_for_cloog_iv): New.
  5167. (loop_iv_stack_patch_for_consts): Use the type of the induction
  5168. variable from the original loop, except for the automatically
  5169. generated loops, i.e., in the case of a strip-mined loop, in
  5170. which case there is no original loop: in that case just use
  5171. integer_type_node.
  5172. (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
  5173. (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
  5174. (clast_name_to_gcc): Accept params to be NULL.
  5175. (clast_to_gcc_expression): Take an extra parameter for the type.
  5176. Convert to that type all the expressions built by this function.
  5177. (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
  5178. (graphite_translate_clast_equation): Compute the type of the
  5179. clast_equation before translating its LHS and RHS.
  5180. (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
  5181. (graphite_create_new_loop): Compute the type of the induction
  5182. variable before translating the lower and upper bounds and before
  5183. creating the induction variable.
  5184. (rename_variables_from_edge, rename_phis_end_scop): New.
  5185. (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
  5186. (sese_add_exit_phis_edge): Do not use integer_zero_node.
  5187. (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
  5188. compute_cloog_iv_types): New.
  5189. (gloog): Call compute_cloog_iv_types before starting the
  5190. translation of the clast.
  5191. * graphite.h (struct graphite_bb): New field cloog_iv_types.
  5192. (GBB_CLOOG_IV_TYPES): New.
  5193. (debug_ivtype_map): Declared.
  5194. (oldiv_for_loop): New.
  5195. 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
  5196. PR middle-end/38459
  5197. * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
  5198. (param_index): Assert if parameter is not know after parameter
  5199. detection.
  5200. (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
  5201. (find_scop_parameters): Mark, that we have finished parameter
  5202. detection.
  5203. (graphite_transform_loops): Move condition detection before parameter
  5204. detection.
  5205. * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
  5206. * gfortran.dg/graphite/pr38459.f90: New.
  5207. 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
  5208. * graphite.c (graphite_transform_loops): Always call find_transform ()
  5209. in ENABLE_CHECKING. So we test these code paths, even if we do not
  5210. generate code.
  5211. 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
  5212. * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
  5213. (print_scop): Ditto.
  5214. 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
  5215. PR middle-end/38084
  5216. Fix gfortran.dg/graphite/id-3.f90.
  5217. * graphite.c (scopdet_basic_block_info): Fix bug that found some
  5218. regions more than once.
  5219. 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
  5220. Fix gfortran.dg/graphite/id-4.f90.
  5221. * graphite.c (scan_tree_for_params): Do not compute the multiplicand
  5222. when not needed.
  5223. 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
  5224. Fix gfortran.dg/graphite/id-1.f90.
  5225. * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
  5226. (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
  5227. (max_precision_type): New.
  5228. (value_clast): Removed.
  5229. (clast_to_gcc_expression): Be more careful to types of expressions.
  5230. Use max_precision_type and update use of gmp_cst_to_tree.
  5231. (graphite_translate_clast_equation): Use max_precision_type.
  5232. (graphite_create_guard_cond_expr): Do not use integer_type_node,
  5233. use the type of the condition.
  5234. (graphite_create_new_loop): Do not use integer_type_node, use the
  5235. max_precision_type of lb and ub.
  5236. 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
  5237. * graphite.c (build_scops_1): Initialize open_scop.exit
  5238. and sinfo.last.
  5239. 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
  5240. * gcc.dg/graphite/pr38084.c: New.
  5241. * gfortran.dg/graphite/id-1.f90: New.
  5242. * gfortran.dg/graphite/id-2.f90: New.
  5243. * gfortran.dg/graphite/id-3.f90: New.
  5244. * gfortran.dg/graphite/id-4.f90: New.
  5245. * gfortran.dg/graphite/pr37857.f90: New.
  5246. 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
  5247. Jan Sjodin <jan.sjodin@amd.com>
  5248. Harsha Jagasia <harsha.jagasia@amd.com>
  5249. PR middle-end/37852
  5250. PR middle-end/37883
  5251. PR middle-end/37928
  5252. PR middle-end/37980
  5253. PR middle-end/38038
  5254. PR middle-end/38039
  5255. PR middle-end/38073
  5256. PR middle-end/38083
  5257. PR middle-end/38125
  5258. * gcc.dg/graphite/pr38073.c: New.
  5259. * gcc.dg/graphite/pr37928.c: New.
  5260. * gcc.dg/graphite/pr37883.c: New.
  5261. * gcc.dg/graphite/pr38125.c: New.
  5262. * gfortran.dg/graphite/pr38083.f90: New.
  5263. * gfortran.dg/graphite/pr37852.f90: New.
  5264. * gfortran.dg/graphite/pr37980.f90: New.
  5265. * gcc.dg/graphite/scop-18.c: Remove reduction, test for
  5266. the number of detected scops. Copy exact same test for loop
  5267. blocking...
  5268. * gcc.dg/graphite/block-1.c: Fix the number of expected
  5269. loops to be blocked as reductions are not handled.
  5270. * gcc.dg/graphite/block-4.c: ...here. New.
  5271. * tree-phinodes.c (remove_phi_nodes): New, extracted from...
  5272. * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
  5273. ...here.
  5274. * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
  5275. * Makefile.in (graphite.o): Depend on value-prof.h.
  5276. (graphite.o-warn): Removed -Wno-error.
  5277. * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
  5278. to be a NULL pointer. Call update_stmt. Return the newly created
  5279. cannonical induction variable.
  5280. * graphite.h (debug_rename_map): Declared. Fix some comments.
  5281. * graphite.c: Reimplement the code generation from graphite to gimple.
  5282. Include value-prof.h.
  5283. (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
  5284. (get_old_iv_from_ssa_name): Removed.
  5285. (graphite_stmt_p): New.
  5286. (new_graphite_bb): Test for useful statements before building a
  5287. graphite statement for the basic block.
  5288. (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
  5289. in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
  5290. reason.
  5291. (recompute_all_dominators, graphite_verify,
  5292. nb_reductions_in_loop, graphite_loop_normal_form): New.
  5293. (scop_record_loop): Call graphite_loop_normal_form.
  5294. (build_scop_loop_nests): Iterate over all the blocks of the
  5295. function instead of relying on the incomplete information from
  5296. SCOP_BBS. Return the success of the operation.
  5297. (find_params_in_bb): Use the data from GBB_DATA_REFS.
  5298. (add_bb_domains): Removed.
  5299. (build_loop_iteration_domains): Don't call add_bb_domains.
  5300. Add the iteration domain only to the basic blocks that have been
  5301. translated to graphite.
  5302. (build_scop_conditions_1): Add constraints only if the basic
  5303. block have been translated to graphite.
  5304. (build_scop_data_accesses): Completely disabled until data
  5305. dependence is correctly implemented.
  5306. (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
  5307. (remove_all_edges_1, remove_all_edges): Removed.
  5308. (get_new_name_from_old_name): New.
  5309. (graphite_rename_variables_in_stmt): Renamed
  5310. rename_variables_in_stmt. Call get_new_name_from_old_name.
  5311. Use replace_exp and update_stmt.
  5312. (is_old_iv): Renamed is_iv.
  5313. (expand_scalar_variables_stmt): Extra parameter for renaming map.
  5314. Use replace_exp and update_stmt.
  5315. (expand_scalar_variables_expr): Same. Use the map to get the
  5316. new names for the renaming of induction variables and for the
  5317. renaming of variables after a basic block has been copied.
  5318. (expand_scalar_variables): Same.
  5319. (graphite_rename_variables): Renamed rename_variables.
  5320. (move_phi_nodes): Removed.
  5321. (get_false_edge_from_guard_bb): New.
  5322. (build_iv_mapping): Do not insert the induction variable of a
  5323. loop in the renaming iv map if the basic block does not belong
  5324. to that loop.
  5325. (register_old_new_names, graphite_copy_stmts_from_block,
  5326. copy_bb_and_scalar_dependences): New.
  5327. (translate_clast): Heavily reimplemented: copy basic blocks,
  5328. do not move them. Finally, in call cleanup_tree_cfg in gloog.
  5329. At each translation step call graphite_verify ensuring the
  5330. consistency of the SSA, loops and dominators information.
  5331. (collect_virtual_phis, find_vdef_for_var_in_bb,
  5332. find_vdef_for_var_1, find_vdef_for_var,
  5333. patch_phis_for_virtual_defs): Removed huge hack.
  5334. (mark_old_loops, remove_dead_loops, skip_phi_defs,
  5335. collect_scop_exit_phi_args, patch_scop_exit_phi_args,
  5336. gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
  5337. (remove_sese_region, ifsese, if_region_entry, if_region_exit,
  5338. if_region_get_condition_block, if_region_set_false_region,
  5339. create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
  5340. sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
  5341. sese_add_exit_phis_edge, sese_add_exit_phis_var,
  5342. rewrite_into_sese_closed_ssa): New.
  5343. (gloog): Remove dead code. Early return if code cannot be
  5344. generated. Call cleanup_tree_cfg once the scop has been code
  5345. generated.
  5346. (graphite_trans_scop_block, graphite_trans_loop_block): Do not
  5347. block loops with less than two loops.
  5348. (graphite_apply_transformations): Remove the call to
  5349. scop_remove_ignoreable_gbbs.
  5350. (limit_scops): When build_scop_loop_nests fails, continue on
  5351. the next scop. Fix open_scop.entry.
  5352. (graphite_transform_loops): Call recompute_all_dominators: force the
  5353. recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
  5354. Call initialize_original_copy_tables and free_original_copy_tables
  5355. to be able to copy basic blocks during code generation.
  5356. When build_scop_loop_nests fails, continue on next scop.
  5357. (value_clast): New union.
  5358. (clast_to_gcc_expression): Fix type cast warning.
  5359. 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
  5360. * Merge from mainline (r140838:141727).
  5361. 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
  5362. PR middle-end/37833
  5363. * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
  5364. 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
  5365. PR middle-end/37943
  5366. * graphite.c (scopdet_basic_block_info): Fix loops with multiple
  5367. exits and conditions.
  5368. * gcc.dg/graphite/pr37943.c: New.
  5369. 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
  5370. PR middle-end/37886
  5371. * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
  5372. 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
  5373. * doc/invoke.texi: Fix spaces.
  5374. 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
  5375. PR tree-optimization/37891
  5376. Reverted last commit.
  5377. * graphite.c (create_single_entry_edge): Set
  5378. EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
  5379. 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
  5380. Mitul Thakkar <mitul.thakkar@amd.com>
  5381. * graphite.c (create_single_entry_edge): Set
  5382. EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
  5383. 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
  5384. * doc/invoke.texi: Add -fgraphite-identity.
  5385. * graphite.c (graphite_apply_transformations): Check for
  5386. -fgraphite-identity.
  5387. * toplev.c (process_options): Add flag_graphite_identity.
  5388. * tree-ssa-loop.c: Add flag_graphite_identity.
  5389. 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
  5390. Undo changes from 2008-10-02:
  5391. * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
  5392. operand type when copying the operand to a variable of different type.
  5393. * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
  5394. with the IV name after increment.
  5395. 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
  5396. Harsha Jagasia <harsha.jagasia@amd.com>
  5397. PR tree-optimization/37828
  5398. * gcc.dg/graphite/pr37828.c: New.
  5399. * graphite.c (graphite_trans_loop_block): Do not loop block
  5400. single nested loops.
  5401. 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
  5402. Sebastian Pop <sebastian.pop@amd.com>
  5403. * graphite.c (struct rename_map_elt, new_rename_map_elt,
  5404. rename_map_elt_info, eq_rename_map_elts): New.
  5405. (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
  5406. (expand_scalar_variables_expr): Change parameters.
  5407. (expand_scalar_variables_stmt): Same.
  5408. (expand_scalar_variables): Same.
  5409. (graphite_rename_ivs): Rename graphite_rename_variables.
  5410. (build_iv_mapping): New.
  5411. (translate_clast): Call build_iv_mapping.
  5412. * graphite.h (gbb_p): New name.
  5413. 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
  5414. PR tree-optimization/37684
  5415. * gcc.dg/graphite/pr37684.c: New.
  5416. * graphite.c (exclude_component_ref): New.
  5417. (is_simple_operand): Call exclude_component_ref.
  5418. 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
  5419. Harsha Jagasia <harsha.jagasia@amd.com>
  5420. PR tree-optimization/37485
  5421. * gcc.dg/graphite/block-2.c: New
  5422. * graphite.c (gmp_cst_to_tree): Moved.
  5423. (iv_stack_entry_is_constant): New.
  5424. (iv_stack_entry_is_iv): New.
  5425. (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
  5426. (loop_iv_stack_insert_constant): New.
  5427. (loop_iv_stack_pop): Use new datatpype.
  5428. (loop_iv_stack_get_iv): Same.
  5429. (loop_iv_stack_get_iv_from_name): Same.
  5430. (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
  5431. (loop_iv_stack_patch_for_consts): New.
  5432. (loop_iv_stack_remove_constants): New.
  5433. (graphite_create_new_loop): Use loop_iv_stack_push_iv.
  5434. (translate_clast): Call loop_iv_stack_patch_for_consts and
  5435. loop_iv_stack_remove_constants.
  5436. (gloog): Use new datatype. Redirect construction edge to end
  5437. block to avoid accidental deletion.
  5438. * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
  5439. iv stack entry.
  5440. (union iv_stack_entry_data): New. Data in iv stack entry.
  5441. (struct iv_stack_entry): New. Datatype for iv stack entries.
  5442. 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
  5443. * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
  5444. operand type when copying the operand to a variable of different type.
  5445. 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
  5446. * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
  5447. with the IV name after increment.
  5448. 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
  5449. * Merge from mainline (r140164:140838).
  5450. 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  5451. * graphite-data-ref.c: New.
  5452. * graphite.c (print_scop): Also dump the dependence graph.
  5453. (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
  5454. (new_scop): Initialize SCOP_DEP_GRAPH.
  5455. (build_scop_dynamic_schedules): New.
  5456. (build_access_matrix_with_af): Fixed column numbering.
  5457. (graphite_transform_loops): Call build_scop_dynamic_schedules.
  5458. * graphite.h: Add ifndef/define guards against multiple inclusion.
  5459. (struct scop): Add dep_graph field.
  5460. (SCOP_DEP_GRAPH): Defined.
  5461. (ref_nb_loops): Fixed and moved to other position.
  5462. (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
  5463. (nb_loops_around_loop_in_scop): New.
  5464. (graphite_dump_dependence_graph): Declared.
  5465. (graphite_build_rdg_all_levels): Declared.
  5466. (graphite_test_dependence): Declared.
  5467. * Makefile.in (graphite-data-ref.o): New target.
  5468. 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
  5469. * Merge from mainline (139870:140164).
  5470. 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
  5471. * Merge from mainline (138275:139870).
  5472. * gcc.dg/graphite/scop-matmult.c: XFailed as one of
  5473. the commits from trunk broke the niter detection.
  5474. 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
  5475. * graphite.c: Add more documentation. Fix formatting.
  5476. (debug_loop_vec, debug_oldivs, loop_iv_stack,
  5477. loop_iv_stack_debug): Moved...
  5478. (schedule_to_scattering): Move before use.
  5479. (dot_all_scops): Include in "#if 0" the code for system
  5480. call dotty.
  5481. * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
  5482. loop_iv_stack_debug): ...here.
  5483. 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
  5484. * tree-phinodes.c (make_phi_node): Extern.
  5485. (add_phi_node_to_bb): New.
  5486. (create_phi_node): Call add_phi_node_to_bb.
  5487. * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
  5488. (remove_statement): Handle case where stored phi was updated
  5489. and is no longer the same.
  5490. * graphite.c (is_parameter): New.
  5491. (is_old_iv): New.
  5492. (expand_scalar_variables_expr): New.
  5493. (expand_scalar_variables_stmt): New.
  5494. (expand_scalar_variables): New.
  5495. (move_phi_nodes): Create new phi instead of moving old one.
  5496. (translate_clast): Call expand_scalar_variables.
  5497. (find_vdef_for_var_in_bb): Also scan regular definitions.
  5498. (skip_phi_defs): New.
  5499. (collect_scop_exit_phi_args): New.
  5500. (patch_scop_exit_phi_args): New.
  5501. (gloog): Patch phis after scop.
  5502. * tree-flow.h: (add_phi_node_to_bb): Declared.
  5503. (make_phi_node): Declared.
  5504. 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
  5505. * graphite.c (end_scop): Split the entry of the scop when it
  5506. is the header of the loop in which the scop is ending.
  5507. (build_scops_1, limit_scops): Update uses of end_scop.
  5508. 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
  5509. * graphite.c (dot_all_scops_1): Do not fail on uninitialized
  5510. SCOP_ENTRY or SCOP_EXIT.
  5511. 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
  5512. * graphite.c (get_construction_edge): Removed.
  5513. (gloog): Construction edge is the scop entry edge.
  5514. 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
  5515. * graphite.c (can_generate_for_scop): Removed.
  5516. (gloog): Do not call it.
  5517. 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
  5518. * graphite.c (new_scop): Entry of a scop is an edge.
  5519. Initialize SESE region.
  5520. (free_scop): Free SESE region.
  5521. (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
  5522. (split_difficult_bb): New, split from end_scop.
  5523. (end_scop): Exit of a scop is an edge.
  5524. (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
  5525. not automatically updated and thus is always wrong.
  5526. * graphite.h (struct sese): New.
  5527. (SESE_ENTRY): New.
  5528. (SESE_EXIT): New.
  5529. (struct scop): New field for a SESE region. Remove entry, exit.
  5530. (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
  5531. semantics as before. Moved comment around.
  5532. 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
  5533. Sebastian Pop <sebastian.pop@amd.com>
  5534. * graphite.c (graphite_transform_loops): Always enable gloog
  5535. and find_transform when ENABLE_CHECKING.
  5536. 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
  5537. * graphite.c (graphite_transform_loops): Move pretty printer
  5538. of SCOPs before doing any transform. Remove call to print_scops
  5539. and dot_all_scops_1.
  5540. 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
  5541. * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
  5542. (print_graphite_bb): Same.
  5543. 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
  5544. * graphite.c (dot_all_scops_1): Cleanup.
  5545. (move_scops): Fix comment.
  5546. 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
  5547. * graphite.c (build_scop_bbs): Revert commit 139355:
  5548. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5549. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  5550. * graphite.c (build_scop_bbs): Factor up code.
  5551. 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
  5552. * graphite.c (gloog): Update dominator info.
  5553. 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
  5554. * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
  5555. 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
  5556. * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
  5557. initialization.
  5558. (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
  5559. (translate_clast): Correct formatting.
  5560. * graphite.h (struct num_map): Removed.
  5561. (struct graphite_bb): Remove num_map field.
  5562. (GBB_INDEX_TO_NUM_MAP): Removed.
  5563. 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
  5564. * graphite.c (build_access_matrix_with_af): Fix comments.
  5565. (build_scop_data_accesses): Same.
  5566. 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
  5567. * graphite.c (build_scop_data_accesses): Don't construct
  5568. access matrices. Add a FIXME and an assert condition that
  5569. should pass when the access matrices will be needed.
  5570. 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
  5571. * tree-data-ref.c (stmt_simple_memref_p): Don't call
  5572. really_constant_p.
  5573. * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
  5574. Moved close by free_graphite_bb.
  5575. (free_graphite_bb): Call free_data_refs. Reset bb->aux.
  5576. (new_scop): Move close by free_scop.
  5577. (graphite_transform_loops): Avoid linear scan to reset bb->aux.
  5578. 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
  5579. * cfgloopmanip.c (create_empty_if_region_on_edge): New.
  5580. * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
  5581. instead of recursive call.
  5582. (graphite_translate_clast_equation): New.
  5583. (graphite_create_guard_cond_expr): New.
  5584. (graphite_create_new_guard): New.
  5585. (get_stack_index_from_iv): Removed.
  5586. (graphite_rename_ivs_stmt): Use gbb_loop_index.
  5587. (get_true_edge_from_guard_bb): New.
  5588. (translate_clast): Handle stmt_guard in clast.
  5589. (get_construction_edge): Allow construction edge detection for
  5590. a scope entry with multiple predecessors if one predecessor is
  5591. the immediate dominator of scope entry.
  5592. (can_generate_code_stmt): Enable code generation for clast_guard.
  5593. (gloog): Use correct context loop. Removed check for post dominators.
  5594. * cfgloop.h (create_empty_if_region_on_edge): Declared.
  5595. 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
  5596. * graphite.c (remove_dead_loops): Document better which
  5597. loops are removed.
  5598. 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
  5599. * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
  5600. and PPLINC.
  5601. (graphite.o): Also depends on pointer-set.h.
  5602. 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
  5603. * graphite.c (scop_record_loop): Fix compile warning.
  5604. 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
  5605. Sebastian Pop <sebastian.pop@amd.com>
  5606. * graphite.c (scop_record_loop): DECL_NAME can be NULL.
  5607. 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
  5608. * graphite.c (build_graphite_bb): Initialize bb->aux to
  5609. point to the graphite_bb_p.
  5610. (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
  5611. content of bb->aux.
  5612. (add_bb_domains): Does not use the scop parameter.
  5613. (graphite_transform_loops): Clean bb->aux at the end.
  5614. 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  5615. Sebastian Pop <sebastian.pop@amd.com>
  5616. * lib/target-supports.exp
  5617. (check_effective_target_fgraphite): New.
  5618. * gcc.dg/graphite/graphite.exp: Early exit when
  5619. check_effective_target_fgraphite returns false.
  5620. Set dg-do-what-default to compile.
  5621. (scan-graphite-dump-times): Removed.
  5622. * gfortran.dg/graphite/graphite.exp: Same.
  5623. * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
  5624. Use scan-tree-dump-times instead of scan-graphite-dump-times.
  5625. * gcc.dg/graphite/scop-1.c: Same.
  5626. * gcc.dg/graphite/scop-2.c: Same.
  5627. * gcc.dg/graphite/scop-3.c: Same.
  5628. * gcc.dg/graphite/scop-4.c: Same.
  5629. * gcc.dg/graphite/scop-5.c: Same.
  5630. * gcc.dg/graphite/scop-6.c: Same.
  5631. * gcc.dg/graphite/scop-7.c: Same.
  5632. * gcc.dg/graphite/scop-8.c: Same.
  5633. * gcc.dg/graphite/scop-9.c: Same.
  5634. * gcc.dg/graphite/scop-10.c: Same.
  5635. * gcc.dg/graphite/scop-11.c: Same.
  5636. * gcc.dg/graphite/scop-12.c: Same.
  5637. * gcc.dg/graphite/scop-13.c: Same.
  5638. * gcc.dg/graphite/scop-matmult.c: Same.
  5639. * gcc.dg/graphite/scop-14.c: Same.
  5640. * gcc.dg/graphite/scop-15.c: Same.
  5641. * gcc.dg/graphite/block-0.c: Same.
  5642. * gcc.dg/graphite/scop-16.c: Same.
  5643. * gcc.dg/graphite/block-1.c: Same.
  5644. * gcc.dg/graphite/scop-17.c: Same.
  5645. * gcc.dg/graphite/scop-18.c: Same.
  5646. * gfortran.dg/graphite/block-1.f90: Same.
  5647. * gfortran.dg/graphite/scop-1.f: Same.
  5648. * gfortran.dg/graphite/block-2.f: Same.
  5649. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5650. * graphite.c: Fix some XXX comments.
  5651. (build_scop_dynamic_schedules): Removed.
  5652. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5653. * graphite.h (scop_max_loop_depth): Moved...
  5654. * graphite.c (scop_max_loop_depth): ...here.
  5655. (remove_all_edges_1): New.
  5656. (remove_all_edges): Factored code.
  5657. (remove_cond_exprs): Check only the last statement for
  5658. a GIMPLE_COND expression.
  5659. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5660. * graphite.c (scan_tree_for_params): Early return when the
  5661. expression is a chrec_dont_know. Handle case NEGATE_EXPR.
  5662. (find_scop_parameters): Factor out code.
  5663. (graphite_trans_bb_strip_mine): Remove dead code.
  5664. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5665. * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
  5666. graphite_trans_bb_move_loop): Factor asserts.
  5667. (gloog): Perform sanity checks only for ENABLE_CHECKING.
  5668. Do not call calculate_dominance_info and estimate_bb_frequencies.
  5669. 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
  5670. * graphite.c (create_loops_mapping, free_loops_mapping,
  5671. create_loops_mapping_num, debug_loop_mapping_1,
  5672. debug_loop_mapping, graphite_loops_mapping_max_loop_num,
  5673. get_loop_mapping_for_num, graphite_loops_mapping_add_child,
  5674. graphite_loops_mapping_add_child_num,
  5675. graphite_loops_mapping_insert_child,
  5676. graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
  5677. get_loop_mapped_depth, split_loop_mapped_depth_for_num,
  5678. loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
  5679. create_num_from_index, get_num_from_index,
  5680. swap_loop_mapped_depth): Removed.
  5681. (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
  5682. (free_scop): Do not call free_loops_mapping.
  5683. (graphite_get_new_iv_stack_index_from_old_iv): Renamed
  5684. get_stack_index_from_iv. Use GBB_LOOPS instead of calling
  5685. get_loop_mapped_depth.
  5686. (graphite_trans_bb_move_loop): Do not update the loop mapping.
  5687. (graphite_trans_bb_strip_mine): Same.
  5688. * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
  5689. (struct scop): Remove field loops_mapping.
  5690. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5691. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  5692. * graphite.c (scop_record_loop): Factor out one level of the
  5693. condition by early return.
  5694. (build_scop_loop_nests): Format following FSF coding style.
  5695. (build_scop_dynamic_schedules): Factor out code.
  5696. (scopdet_bb_info): Reindent. Default case should not be reachable.
  5697. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5698. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  5699. * graphite.c (loop_affine_expr): Check for DECL_P or struct
  5700. assignments that are not handled as simple operands for now.
  5701. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5702. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  5703. * graphite.c (build_scop_bbs): Factor up code.
  5704. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5705. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  5706. * graphite.c (stmt_simple_for_scop_p): Factor code out
  5707. of the loop.
  5708. (enum gbb_type): New. Group all the GBB_* types under it.
  5709. (is_loop_exit): Moved...
  5710. (end_scop): Enable BB spliting.
  5711. * cfgloop.c (is_loop_exit): ...here. Reimplemented.
  5712. * cfgloop.h (is_loop_exit): Declared.
  5713. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5714. * doc/invoke.texi: Remove strides from examples containing
  5715. DO loops when the strides are equal to 1.
  5716. 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
  5717. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  5718. * graphite.c (graphite_trans_scop_block): Or the result with
  5719. the result from graphite_trans_loop_block.
  5720. * gcc.dg/graphite/block-1.c: New.
  5721. * gfortran.dg/graphite/block-1.f90: New.
  5722. * gfortran.dg/graphite/block-2.f: New.
  5723. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5724. * graphite.c (graphite_transform_loops): Call cloog_initialize
  5725. and cloog_finalize.
  5726. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5727. * tree-data-ref.c) (stmt_simple_memref_p): New.
  5728. * tree-data-ref.h (stmt_simple_memref_p): Declared.
  5729. * graphite.c (stmt_simple_memref_for_scop_p): Removed.
  5730. (is_simple_operand): Call stmt_simple_memref_p.
  5731. * gcc.dg/graphite/scop-matmult.c: Updated for not
  5732. using pointer arithmetic, as this is optimized by PRE and
  5733. makes the code too difficult to analyze.
  5734. * gcc.dg/graphite/scop-18.c: Same.
  5735. 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
  5736. * gdbinit.in (pgg): New.
  5737. 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
  5738. * graphite.c (graphite_trans_loop_block): Fix warning.
  5739. 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
  5740. * graphite.c (graphite_trans_loop_block): Fix my merge error.
  5741. 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
  5742. * graphite.c (graphite_trans_bb_block): Remove check for
  5743. flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
  5744. Check if loop blocking is profitable for every loop, before applying
  5745. the changes.
  5746. (graphite_apply_transformations): Call graphite_trans_bb_block only,
  5747. if flag_loop_block is set.
  5748. 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
  5749. * graphite.c: Add some more documentation for the loop
  5750. mapping.
  5751. 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
  5752. * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
  5753. * graphite.c: Format on less than 80 columns.
  5754. * graphite.h: Same.
  5755. 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
  5756. * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
  5757. 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
  5758. * doc/invoke.texi (floop-block, floop-strip-mine,
  5759. floop-interchange): Update documentation with examples.
  5760. 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
  5761. * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
  5762. add_referenced_var.
  5763. * graphite.c (graphite_create_new_loop): Call add_referenced_var.
  5764. 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
  5765. * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
  5766. Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
  5767. * tree-scalar-evolution.c: Revert useless changes.
  5768. * tree-phinodes.c: Same.
  5769. * cfghooks.c: Same.
  5770. * vec.h: Same.
  5771. * tree-vectorizer.h: Same.
  5772. * tree-flow.h: Same.
  5773. * tree-cfg.c: Same.
  5774. * common.opt (fgraphite): Update documentation.
  5775. 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
  5776. * doc/invoke.texi (-floop-block, -floop-strip-mine,
  5777. -floop-interchange): Add more text for explaining what each of these
  5778. flags is doing.
  5779. * tree-into-ssa.c (gimple_vec): Moved to...
  5780. * graphite.c: Include gimple.h.
  5781. (gimple_vec): Moved to...
  5782. (del_loop_to_cloog_loop): Removed.
  5783. (loop_affine_expr): Do not call create_data_ref when the
  5784. operand is a constant.
  5785. (new_scop): Use free instead of del_loop_to_cloog_loop.
  5786. * Makefile.in (graphite.o): Depend on GIMPLE_H.
  5787. * gimple.h (gimple_vec): ... here.
  5788. 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
  5789. * graphite.c (scopdet_bb_info): Only allow loops with known number of
  5790. latch executions.
  5791. (build_loop_iteration_domains): Fail, if latch executions unknown.
  5792. 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
  5793. * graphite.c (add_conditions_to_domain): New.
  5794. (build_scop_conditions_1): Call add_conditions_to_domain.
  5795. (set_cloog_options): Allow to disable optimizations.
  5796. 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
  5797. * graphite.c (find_params_in_bb): Look for parameters in conditions.
  5798. Do not use walk_dominator_tree.
  5799. (find_scop_parameters): Do not use walk_dominator_tree.
  5800. 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
  5801. * graphite.c (scan_tree_for_params) Add / Subtract inequality.
  5802. (idx_record_params): Adapt.
  5803. * graphite.h (scop_gimple_loop_depth): New.
  5804. 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
  5805. * graphite.c (build_scop_dynamic_schedules): Remove value_init.
  5806. (scan_tree_for_params): Remove value_init.
  5807. (build_scop_context): Remove value_init.
  5808. (build_loop_iteration_domains): Remove value_init.
  5809. (schedule_to_scattering): Remove value_init.
  5810. (graphite_trans_bb_strip_mine): Remove value_init.
  5811. 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
  5812. * gcc/graphite.c (limit_scops): New.
  5813. (graphite_transform_loops): Add limit SCoPs.
  5814. * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
  5815. * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
  5816. * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
  5817. * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
  5818. * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
  5819. * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
  5820. * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
  5821. * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
  5822. * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
  5823. Change loop numbers.
  5824. * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
  5825. Change loop numbers.
  5826. * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
  5827. * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
  5828. * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
  5829. * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
  5830. * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
  5831. * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
  5832. * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
  5833. * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
  5834. * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
  5835. * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
  5836. 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
  5837. * graphite.c (graphite_transform_loops): Call always find_transform.
  5838. 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
  5839. * graphite.c (free_loops_mapping): New.
  5840. (stmt_simple_for_scop_p): Fix typo.
  5841. (stmt_simple_for_scop_p): Fix tuples functions, that
  5842. broke polyhedron.
  5843. (free_graphite_bb): Fix some memleaks.
  5844. (free_scop): Fix some memleaks.
  5845. (scopdet_bb_info): Do not forget some tmp SCoPs.
  5846. (find_params_in_bb): Fix some memleaks.
  5847. (clast_to_gcc_expression): Fix warning.
  5848. 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
  5849. * gcc.dg/graphite/scop-16.c: Fix for 32bit.
  5850. * gcc.dg/graphite/scop-17.c: Fix for 32bit.
  5851. 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
  5852. * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
  5853. Move code ifdef-ed HAVE_cloog...
  5854. * graphite.c: Include toplev.h.
  5855. ... here.
  5856. * Makefile.in (OBJS-common): Always build graphite.o.
  5857. (BACKEND): Remove @GRAPHITE@.
  5858. (tree-ssa-loop.o): Do not depend on TOPLEV_H.
  5859. (graphite.o): Depend on TOPLEV_H.
  5860. 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
  5861. * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
  5862. Remove typo left from polylib to ppl conversion.
  5863. * graphite.c (graphite_transforms): Use sorry instead of fatal.
  5864. 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
  5865. * toplev.c (process_options): Move the graphite loop optimization
  5866. flags...
  5867. * tree-ssa-loop.c (graphite_transforms): ... here.
  5868. When not configured with CLooG, print to dump_file that
  5869. Graphite transforms were not performed.
  5870. * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
  5871. New.
  5872. * gcc.dg/graphite/*.c: Updated all testcases to use
  5873. scan-graphite-dump-times.
  5874. 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
  5875. * graphite.c (dot_scop, dot_all_scops): Do not call system.
  5876. Do not open /tmp/scop.dot and /tmp/allscops.dot.
  5877. 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
  5878. Jan Sjodin <jan.sjodin@amd.com>
  5879. * configure: Regenerated.
  5880. * omp-low.c (expand_omp_sections): Remove now unused code.
  5881. * config.in (HAVE_polylib): Removed.
  5882. * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
  5883. (PPLLIBS, PPLINC): Added.
  5884. * graphite.c: Replace unsigned with int wherever possible.
  5885. Don't access Cloog's data structures, but use accessor functions.
  5886. Clast's stmt->type is now implemented as a vtable: change the
  5887. switches of stmt->type into ifs.
  5888. (polylib/polylibgmp.h): Don't include.
  5889. (initialize_dependence_polyhedron,
  5890. initialize_data_dependence_polyhedron, is_empty_polyhedron,
  5891. statement_precedes_p, test_dependence, build_rdg_all_levels,
  5892. dump_dependence_graph): Removed until this code is cleaned up
  5893. or ported to Cloog.
  5894. * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
  5895. (POLYLIBINC): Renamed PPLINC.
  5896. 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
  5897. Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  5898. Jan Sjodin <jan.sjodin@amd.com>
  5899. Finish the merge and tuplification of graphite.
  5900. 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
  5901. Jan Sjodin <jan.sjodin@amd.com>
  5902. Partial merge from mainline (138072:138275).
  5903. * graphite.c still has to be tuplified.
  5904. 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
  5905. * graphite.c (graphite_loops_mapping_max_loop_num): New.
  5906. (create_num_from_index): New.
  5907. (get_num_from_index): Also pass in the graphite BB.
  5908. (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
  5909. (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
  5910. (graphite_trans_bb_strip_mine): Call create_num_from_index.
  5911. (is_interchange_valid): Return false when failing.
  5912. * graphite.h (struct num_map): New.
  5913. (struct graphite_bb): New field num_map.
  5914. (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
  5915. 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
  5916. * graphite.c (dump_gbb_conditions): Print also conditions like
  5917. "if (a)". Remove dublicated code and use print_generic_expr ().
  5918. (stmt_simple_for_scop_p): Only allow conditions we can handle
  5919. {<, <=, >, >=}.
  5920. 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
  5921. * graphite.h (struct scop): Removed new_ivs field.
  5922. (SCOP_NEWIVS): Deleted.
  5923. * graphite.c (new_scop, free_scop, clast_name_to_gcc,
  5924. clast_to_gcc_expression, graphite_create_new_loop):
  5925. Removed use of new_ivs.
  5926. 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
  5927. * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
  5928. create_loops_mapping_num, debug_loop_mapping_1): New.
  5929. (debug_loop_mapping): Call debug_loop_mapping_1.
  5930. (get_loop_mapping_for_num,
  5931. graphite_loops_mapping_add_child,
  5932. graphite_loops_mapping_add_child_num,
  5933. graphite_loops_mapping_insert_child,
  5934. graphite_loops_mapping_parent,
  5935. split_loop_mapped_depth_for_num,
  5936. loop_mapped_depth_split_loop): New.
  5937. (increment_loop_mapped_depths): Removed.
  5938. (swap_loop_mapped_depth_for_num): Reimplemented.
  5939. (new_scop): Call create_loops_mapping.
  5940. (scop_record_loop): Call graphite_loops_mapping_insert_child.
  5941. (translate_clast): Pass the old loop father in parameter, and pass
  5942. it to get_old_iv_from_ssa_name.
  5943. (remove_edges_around_useless_blocks, can_generate_code_stmt,
  5944. can_generate_code, can_generate_for_scop): New.
  5945. (graphite_trans_bb_block): Returns false when it fails to transform.
  5946. * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
  5947. 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
  5948. Reverted all the changes related to the streamization and
  5949. loop fusion.
  5950. These changes are now tracked in the streamization branch.
  5951. 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
  5952. Jan Sjodin <jan.sjodin@amd.com>
  5953. * graphite.c (gbb_compare): Correctly constify.
  5954. (gbb_can_be_ignored): Indent.
  5955. (graphite_trans_scop_swap_1and2): Add legality check.
  5956. Remove dead FIXMEs.
  5957. 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
  5958. Remove fallouts from "Reverted the Condate changes".
  5959. * tree.h: Remove unused decl.
  5960. * gcc.dg/tree-checker: Same.
  5961. * timevar.def: Remove counter.
  5962. 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
  5963. * Merge from mainline (135673:138072).
  5964. Reverted the MIRO changes (from 2008-04-05) that are now
  5965. tracked in the miro branch.
  5966. * tree-bounds.c: Removed.
  5967. * tree-bounds.h: Removed.
  5968. Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
  5969. are now tracked in the condate branch.
  5970. * tree-check.c: Removed.
  5971. * tree-match.c: Removed.
  5972. * condate.y: Removed.
  5973. 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  5974. * common.opt: New user flag -floop-block, -floop-strip-mine
  5975. and -floop-interchange.
  5976. * toplev.c (process_options): Enable -fgraphite pass if any one of the
  5977. graphite loop optimization flags is turned on.
  5978. * graphite.c (graphite_apply_transformations): Add flag_loop_block,
  5979. flag_loop_strip_mine and flag_loop_interchange checks before
  5980. optimizations.
  5981. * doc/invoke.texi: Remove -fgraphite and add -floop-block,
  5982. -floop-strip-mine and -floop-interchange.
  5983. * gcc.dg/graphite/block-0.c: Add -floop-block and remove
  5984. -fgraphite.
  5985. * gcc.dg/graphite/scop-16.c: Ditto.
  5986. * gcc.dg/graphite/scop-17.c: Ditto.
  5987. * gcc.dg/graphite/scop-18.c: Ditto.
  5988. 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
  5989. Sebastian Pop <sebastian.pop@amd.com>
  5990. * cfgloopmanip.c (update_dominators_in_loop): Make it static.
  5991. (create_empty_loop_on_edge): More fixes.
  5992. * tree-phinodes.c (resize_phi_node): Extern.
  5993. (unlink_phi_node, move_phi_node): New split from remove_phi_node.
  5994. * cfghooks.c (update_dominator_information): New split from
  5995. split_edge.
  5996. * tree-vectorizer.c (rename_variables_in_bb): Extern.
  5997. * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
  5998. successor of the function entry block.
  5999. * graphite.c: Include pointer-set.h.
  6000. (debug_loop_mapping, increment_loop_mapped_depths,
  6001. get_loop_mapped_depth_for_num, get_loop_mapped_depth,
  6002. set_loop_mapped_depth_for_num, set_loop_mapped_depth,
  6003. swap_loop_mapped_depth_for_num, get_num_from_index,
  6004. swap_loop_mapped_depth, loop_iv_stack_debug,
  6005. loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
  6006. loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
  6007. get_old_iv_from_ssa_name): New.
  6008. (new_scop): Initialize SCOP_LOOPS_MAPPING.
  6009. (free_scop): Free SCOP_LOOPS_MAPPING.
  6010. (scop_record_loop): Record old ivs.
  6011. (create_var_name): Removed.
  6012. (initialize_cloog_names): Allocate double space in case strip mine
  6013. applies to all loops once.
  6014. (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
  6015. (clast_to_gcc_expression): Same. Implement more clast to gimple
  6016. translation.
  6017. (graphite_create_new_loop): Pass in ivstack.
  6018. (remove_all_edges): Pass in the construction_edge.
  6019. (graphite_remove_iv): Removed.
  6020. (graphite_rename_ivs, graphite_rename_ivs_stmt,
  6021. remove_cond_exprs): Rewritten.
  6022. (move_phi_nodes): New.
  6023. (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
  6024. (translate_clast): Pass in ivstack. Rewrite some cases.
  6025. (set_cloog_options, debug_clast_stmt): New.
  6026. (find_transform): Use set_cloog_options.
  6027. (outermost_loop_layer): Removed.
  6028. (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
  6029. find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
  6030. mark_old_loops, remove_dead_loops): New.
  6031. (gloog): Rewritten.
  6032. (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
  6033. (const_column_index, get_first_matching_sign_row_index,
  6034. get_lower_bound_row, get_upper_bound_row, get_lower_bound,
  6035. get_upper_bound): New.
  6036. (graphite_trans_bb_strip_mine): Also update the iv map.
  6037. * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
  6038. (struct name_tree): Add a loop field.
  6039. (struct scop): Add a graphite_loops_mapping field.
  6040. (SCOP_LOOPS_MAPPING): New.
  6041. (debug_clast_stmt): Declare.
  6042. * lambda.h (find_induction_var_from_exit_cond): Declare.
  6043. (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
  6044. * cfgloop.h (update_dominators_in_loop): Removed declaration.
  6045. (create_empty_loop_on_edge): Updated.
  6046. * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
  6047. rename_variables_in_bb): Declare.
  6048. * tree-cfg.c (remove_bb): Extern.
  6049. * gcc.dg/graphite/block-0.c: New.
  6050. 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
  6051. Sebastian Pop <sebastian.pop@amd.com>
  6052. * graphite.c (strip_mine_profitable_p): New.
  6053. (graphite_trans_bb_block): Disable strip mining if not profitable.
  6054. * gcc.dg/graphite/scop-18.c: New.
  6055. * gcc.dg/graphite/scop-17.c: Fixed.
  6056. * gcc.dg/graphite/scop-16.c: Fixed.
  6057. 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
  6058. Jan Sjodin <jan.sjodin@amd.com>
  6059. Sebastian Pop <sebastian.pop@amd.com>
  6060. * graphite.c (is_interchange_valid): New.
  6061. (graphite_trans_bb_block): Check loop nest of basic block for legality
  6062. of interchange.
  6063. * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
  6064. outer_most_loop, gbb_outer_most_loop_index): New.
  6065. * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
  6066. * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
  6067. * gcc.dg/graphite/scop-16.c: New.
  6068. * gcc.dg/graphite/scop-17.c: New.
  6069. 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
  6070. * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
  6071. (graphite_trans_scop_block): Ignore SCoPs without bbs.
  6072. 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
  6073. * graphite.c (new_scop): Initialize SCOP_EXIT.
  6074. (scopdet_info): Add.
  6075. (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
  6076. (build_scops_1): Cleanup, bugfixes.
  6077. (build_scops): Cleanup.
  6078. * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
  6079. * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
  6080. 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
  6081. * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
  6082. * gfortran.dg/graphite/graphite.exp: Use
  6083. DEFAULT_GRAPHITE_FLAGS.
  6084. * gcc.dg/graphite/scop-15.c: Update to reduced test case.
  6085. 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
  6086. * graphite.c (scan_tree_for_params): Do not assert any more if
  6087. MULT_EXPR parameter is negative.
  6088. * gfortran.dg/graphite/scop-1.f: New.
  6089. * gfortran.dg/graphite/graphite.exp: New.
  6090. * gcc.dg/graphite/scop-15.c: New.
  6091. 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
  6092. * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
  6093. 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
  6094. * graphite.c (graphite_trans_bb_swap_loops): Rename from
  6095. graphite_swap_loops.
  6096. (graphite_trans_bb_move_loop): New.
  6097. (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
  6098. (graphite_trans_bb_block): New.
  6099. (graphite_trans_loop_block): New.
  6100. (graphite_trans_scop_swap_1and2): Rename from
  6101. graphite_trans_swap_1and2.
  6102. (graphite_trans_scop_strip): Rename from graphite_trans_strip.
  6103. (graphite_trans_scop_block): New.
  6104. (graphite_apply_transformations): Rename from
  6105. graphite_transformations.
  6106. * gcc.dg/graphite/scop-matmult.c: New.
  6107. 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
  6108. * graphite.c (gbb_compare): New.
  6109. (graphite_sort_gbbs): New.
  6110. (gbb_can_be_ignored): New.
  6111. (scop_remove_ignoreable_gbbs): New.
  6112. (graphite_transformations): Cleanup and add
  6113. scop_remove_ignoreable_gbbs.
  6114. * lambda.h (lambda_vector_compare): New.
  6115. 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
  6116. * graphite.c (print_graphite_bb): Correct printing of static schedule.
  6117. (graphite_swap_loops): int -> unsigned
  6118. (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
  6119. (graphite_transformations): New.
  6120. (graphite_transform_loops): Move to graphite_transformations.
  6121. * graphite.h (gbb_nb_loops): Return unsigned.
  6122. 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
  6123. * graphite.c (scan_tree_for_params): Fix insertion of parameters into
  6124. the domain matrix. This makes scop-0.c work again.
  6125. 2008-06-20 Richard Guenther <rguenther@suse.de>
  6126. * graphite.h: Adjust copyright to GPLv3.
  6127. * graphite.c: Likewise.
  6128. (stmt_simple_memref_for_scop_p): Split out from ...
  6129. (stmt_simple_for_scop_p): ... here. Fix handling of calls
  6130. and simplify.
  6131. (get_bb_type): Optimize.
  6132. (is_pred): Remove.
  6133. (is_bb_addable): Fix memleak, replace is_pred call with
  6134. single_pred.
  6135. (build_scops): Use current_loops.
  6136. (param_index): Fix memleak.
  6137. 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6138. * graphite.c: Fix formatting.
  6139. 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6140. * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
  6141. (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
  6142. (create_var_name, save_var_name): Newly defined functions.
  6143. (initialize_cloog_names): Part of the code factored out to
  6144. save_var_name.
  6145. (clast_to_gcc_expression): Now handles the case of clast_red_sum
  6146. in clast_reduction statement.
  6147. (graphite_create_new_loop): Now takes a new parameter
  6148. for outer_loop.
  6149. (translate_clast): Now also takes the context_loop and bb_exit
  6150. parameters. Rewritten the code so that it creates a gimple code
  6151. inside the given context.
  6152. (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
  6153. remove_cond_expr, disconnect_cond_expr,
  6154. disconnect_virtual_phi_nodes): Newly defined functions.
  6155. * graphite.h (struct scop): added old_ivs vector.
  6156. SCOP_OLDIVS: New macro.
  6157. 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
  6158. * cfgloopmanip.c: Add missing function comments, fix formatting.
  6159. 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6160. * cfgloopmanip.c (update_dominators_in_loop): Defined.
  6161. (create_empty_loop_on_edge): Defined.
  6162. * tree-parloops.c (canonicalize_loop_ivs): Returns tree
  6163. instead of void.
  6164. * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
  6165. (update_dominators_in_loop): Declared as extern
  6166. * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
  6167. 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
  6168. * graphite.c (print_graphite_bb): Allow changing number of loops
  6169. in SCoP domain.
  6170. (initialize_cloog_names): Allow changing number of loops.
  6171. (build_cloog_prog): Simplify.
  6172. (find_transform): Enable cloog option --strides.
  6173. (graphite_swap_loops): New.
  6174. (graphite_strip_mine_loop): New.
  6175. (graphite_trans_swap_1and2): New.
  6176. (graphite_trans_strip): New.
  6177. (graphite_transform_loops): Add graphite_trans_strip.
  6178. * graphite.h (scop_max_loop_depth): New.
  6179. 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
  6180. * graphite.c (build_scop_iteration_domain): Remove forgotten
  6181. line. (Fixes compile)
  6182. 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
  6183. * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
  6184. (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
  6185. (build_bb_loops): New.
  6186. (graphite_transform_loops): Add build_bb_loops.
  6187. (schedule_to_scattering): Use gbb_nb_loops to support changing loop
  6188. numbers.
  6189. * graphite.h (graphite_bb): Add loops.
  6190. (gbb_nb_loops): New.
  6191. (gbb_loop_at_index): New.
  6192. (gbb_loop_index): New.
  6193. (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
  6194. using nb_params_in_scop.
  6195. 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
  6196. * graphite.c (print_graphite_bb): Adapt to minimized schedule.
  6197. (build_scop_canonical_schedules): Build minimized schedule.
  6198. (schedule_to_scattering): Adapt to minimized schedule.
  6199. * graphite.h (graphite_bb): Add/Update descriptions.
  6200. 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
  6201. Tobias Grosser <grosser@fim.uni-passau.de>
  6202. * graphite.c (print_graphite_bb): Add condition printing.
  6203. (dump_value): New.
  6204. (dump_gbb_conditions): New.
  6205. (build_scop_conditions_1): New.
  6206. (build_scop_conditions): New.
  6207. * graphite.h (graphite_bb): Add conditions.
  6208. 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
  6209. * graphite.c (print_graphite_bb):
  6210. (free_graphite_bb): New.
  6211. (free_scop): Free bbs.
  6212. (get_bb_type): Free doms.
  6213. (build_scop_context): Free context matrix.
  6214. (build_loop_iteration_domains): Remove unused code.
  6215. (build_cloog_prog): Free scattering function and blocklist.
  6216. (find_transform): Free options.
  6217. 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
  6218. * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
  6219. Remove unnecessery cloog data structures. Make a copy of the domain
  6220. (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
  6221. unnecessary cloog data structures. Fix memory leaks. Remove insert
  6222. into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
  6223. used.
  6224. (build_scop_iteration_domain): Remove unnecessary cloog
  6225. data structures. Fix memory leaks.
  6226. (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
  6227. uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
  6228. 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
  6229. * graphite.c (find_scop_params): Remove initialize_cloog_names.
  6230. 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
  6231. * graphite.c (end_scop): Style fix.
  6232. (schedule_to_scattering): Style and comment fix.
  6233. 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
  6234. * graphite.c (print_graphite_bb): Fix definiton of
  6235. schedule_to_scattering.
  6236. (initialize_cloog_names): Change nb_scattdims to max loop
  6237. depth in SCoP.
  6238. (schedule_to_scattering): Take parameter for number of scattering
  6239. dimensions.
  6240. (build_cloog_prog): Only build as much scattering dimensions as
  6241. necessary.
  6242. 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
  6243. * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
  6244. in polyhedron/aermod.f90.
  6245. 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
  6246. Dwarak Rajagopal <dwarak.rajagopal@amd.com>
  6247. Harsha Jagasia <harsha.jagasia@amd.com>
  6248. * graphite.c (is_bb_addable): Fix segfault.
  6249. 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
  6250. * graphite.c (is_bb_addable): Fix memory leak, handling of loops
  6251. with multiple exits and conditional handling in edge cases.
  6252. (is_loop_exit): Fix memory leak. (Forgotten in last commit)
  6253. * gcc.dg/graphite/scop-14.c: New.
  6254. 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
  6255. Adrien Eliche <aeliche@isty.uvsq.fr>
  6256. * graphite.c (is_bb_addable): Add more comments and enhance
  6257. readablity of the source code. Fix memory leak.
  6258. (is_loop_exit): Fix memory leak.
  6259. 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
  6260. * graphite.c (first_loop_in_scop): Deleted.
  6261. (setup_cloog_loop): Only walk the loop chain for inner loops.
  6262. (build_scop_iteration_domain): Execute setup_cloog_loop for
  6263. all loops in the first layer.
  6264. 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
  6265. * graphite.c (scan_tree_for_params): Change the way params are
  6266. added to be indepenent of the number of loops.
  6267. (setup_cloog_loop): Revert to short matrix format. Fix parameter
  6268. handling.
  6269. (build_cloog_prog): Revert to short matrix format.
  6270. 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
  6271. Dwarak Rajagopal <dwarak.rajagopal@amd.com>
  6272. * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
  6273. warning.
  6274. 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
  6275. * graphite.c (nb_data_refs_in_scop): New.
  6276. (graphite_transform_loops): Print more stats: number of
  6277. loops, basic blocks and data references per scop.
  6278. 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
  6279. Jan Sjodin <jan.sjodin@amd.com>
  6280. * graphite.c (loop_affine_expr, idx_record_params,
  6281. find_scop_parameters, setup_cloog_loop): Use instantiate_scev
  6282. instead of instantiate_parameters.
  6283. 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
  6284. * graphite.c (schedule_to_scattering): Fix scattering dimensions,
  6285. add support for parameters, add STATIC_SCHEDULE at the right places,
  6286. cleanup.
  6287. 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
  6288. * graphite.c (build_scop_loop_nests): Only add the loops, that
  6289. are contained completely in the SCoP.
  6290. (build_cloog_prog): Disable scattering, until schedule_to_scattering
  6291. and the domains are fixed.
  6292. (build_scop_canonical_schedules): Add support for bbs not contained
  6293. in any SCoP.
  6294. 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
  6295. * graphite.h (scop_contains_loop): Update comments to match
  6296. the actual behavior.
  6297. (scop_contains_loop): New.
  6298. * graphite.c (schedule_to_scattering): Use scop_contains_loop.
  6299. 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
  6300. * graphite.c (get_bb_type): On function body, i.e. loop_0,
  6301. don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
  6302. as GBB_COND_HEADER.
  6303. 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
  6304. Tobias Grosser <grosser@fim.uni-passau.de>
  6305. * graphite.c (graphite_transform_loops): Early return when
  6306. there are no loops in the function.
  6307. 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
  6308. Jan Sjodin <jan.sjodin@amd.com>
  6309. * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
  6310. offset of the last loop.
  6311. (setup_cloog_loop): Copy the entire outer constraint matrix.
  6312. 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
  6313. Jan Sjodin <jan.sjodin@amd.com>
  6314. * graphite.c (stmt_in_scop_p, function_parameter_p,
  6315. invariant_in_scop_p): Removed.
  6316. (scan_tree_for_params): Can be used with no constraint
  6317. matrix for gathering parameters.
  6318. (idx_record_params): Don't use idx_record_param, instead use
  6319. scan_tree_for_params.
  6320. (find_scop_parameters): Same.
  6321. (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
  6322. Fix the size of loop domains.
  6323. (schedule_to_scattering): Exit when the outer loop is not in scop.
  6324. (find_transform): Enable build_cloog_prog.
  6325. 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
  6326. Jan Sjodin <jan.sjodin@amd.com>
  6327. * graphite.c (schedule_to_scattering): Make scattering domains
  6328. uniformly of the same size, as required by CLooG 0.14.0 and before.
  6329. 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
  6330. Jan Sjodin <jan.sjodin@amd.com>
  6331. * graphite.c (schedule_to_scattering): Rewrite, correct the
  6332. translation of the scheduling function to scattering.
  6333. (build_cloog_prog): Call schedule_to_scattering only once.
  6334. * graphite.h (scop_loop_index): Do not fail for loops not
  6335. in the scop: return -1.
  6336. 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
  6337. * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
  6338. (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
  6339. (setup_cloog_loop): Export GBB_DOMAIN.
  6340. (build_cloog_prog): New. Create new CLOOG_PROG, which should be
  6341. able to rebuild the original control flow.
  6342. * graphite.h (graphite_bb): Add domain field and access macro.
  6343. (GBB_DOMAIN): New.
  6344. 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
  6345. * graphite.c (debug_gbb): New.
  6346. (print_scop, build_graphite_bb): Use SCOP_BBS.
  6347. (build_scop_bbs): Reimplemented.
  6348. (dfs_bb_in_scop_p): Removed.
  6349. (build_scop_loop_nests): Reorder loops inserted in
  6350. SCOP_LOOP_NEST: outer loops should come first.
  6351. (build_scop_canonical_schedules): Reinitialize at zero
  6352. the components of the SCOP_STATIC_SCHEDULE for the loops
  6353. that have already been parsed.
  6354. * graphite.h (debug_gbb): Declared.
  6355. 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
  6356. Jan Sjodin <jan.sjodin@amd.com>
  6357. * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
  6358. (graphite_loop_to_gcc_loop): Removed.
  6359. (remove_all_edges): New.
  6360. (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
  6361. (gloog): Remove useless code.
  6362. 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
  6363. * graphite.c (get_bb_type): Reworked. We distinguish between
  6364. loops with one or multiple exits.
  6365. (is_loop_exit): New.
  6366. (is_pred): New.
  6367. (is_bb_addable): Rework condition handling, now support for case
  6368. case statements and loops with multiple exits.
  6369. * gcc.dg/graphite/scop-11.c: New.
  6370. * gcc.dg/graphite/scop-12.c: New.
  6371. * gcc.dg/graphite/scop-13.c: New.
  6372. 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
  6373. * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
  6374. we have too many colors.
  6375. 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
  6376. * doc/invoke.texi (-ftree-loop-fusion): Document.
  6377. * tree-pass.h (pass_loop_fusion): Declared.
  6378. * tree-loop-fusion.c: New.
  6379. * timevar.def (TV_TREE_LOOP_FUSION): Declared.
  6380. * tree-data-ref.c (find_data_references_in_loop): Make extern.
  6381. * tree-data-ref.h (find_data_references_in_loop): Declared.
  6382. * common.opt (ftree-loop-fusion): Declared.
  6383. * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
  6384. 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
  6385. * graphite.c (build_access_matrix): Fix typo from the merge.
  6386. 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
  6387. * Merge from mainline (130800:135673).
  6388. 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
  6389. * graphite.c (end_scop): The exit of the scop is not part of the scop.
  6390. Update dominators after splitting.
  6391. 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
  6392. * graphite.c (is_bb_addable): Return the harmful statement.
  6393. Factor up some code.
  6394. (end_scop): New. Splits end of scope bbs on a harmful statement.
  6395. (build_scops_1): Call end_scop.
  6396. 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
  6397. * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
  6398. all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
  6399. add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
  6400. build_scops_1): Removed.
  6401. (build_scops_2): Renamed build_scops_1.
  6402. 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
  6403. * graphite.c: Fix formatting.
  6404. 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
  6405. * graphite.c (get_bb_type): New.
  6406. (move_scops): New.
  6407. (build_scops_2): New.
  6408. (is_bb_addable): New.
  6409. (build_scops): Switch the scop detection.
  6410. (build_scop_bbs): Add entry bb to scop.
  6411. * graphite.h (struct scop): Update comment.
  6412. 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
  6413. * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
  6414. more colors.
  6415. 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
  6416. * gcc.dg/graphite/scop-1.c: Update.
  6417. * gcc.dg/graphite/scop-2.c: Update.
  6418. * gcc.dg/graphite/scop-4.c: Update.
  6419. * gcc.dg/graphite/scop-5.c: Add.
  6420. * gcc.dg/graphite/scop-6.c: Add.
  6421. 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
  6422. * gcc.dg/graphite/scop-0.c: Add.
  6423. * gcc.dg/graphite/scop-7.c: Add.
  6424. * gcc.dg/graphite/scop-8.c: Add.
  6425. * gcc.dg/graphite/scop-9.c: Add.
  6426. * gcc.dg/graphite/scop-10.c: Add.
  6427. 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
  6428. * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
  6429. Check affine expressions depending on the outermost loop
  6430. instead of a scop.
  6431. (stmt_simple_for_scop_p): Same.
  6432. (harmfule_stmt_in_scop): Same.
  6433. 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
  6434. * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
  6435. mark entry and exit, that are not part of the SCoP and update HTML
  6436. formatting.
  6437. 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
  6438. * graphite.c (basic_block_simple_for_scop_p): Renamed
  6439. harmful_stmt_in_bb.
  6440. (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
  6441. (add_dominators_to_open_scops, build_scops_1): Reimplemented.
  6442. (all_preds_visited_p, all_succs_visited_p,
  6443. start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
  6444. scop_end_loop): New.
  6445. (build_scops): Do not use dfs_enumerate_from.
  6446. * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
  6447. 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
  6448. * graphite.c: Add comments to functions that are missing a
  6449. description.
  6450. (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
  6451. 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
  6452. * graphite.c (nb_params_in_scop): Moved...
  6453. (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
  6454. (setup_cloog_loop): Call loop_body_to_cloog_stmts.
  6455. (clast_to_gcc_expression): Reduce column size to less than 80.
  6456. (graphite_create_iv): Return the new name of the IV.
  6457. (find_transform): Set options->esp and options->cpp.
  6458. (gloog): Comment out the invalidation of the old loop code.
  6459. (initialize_dependence_polyhedron): Replace scop_nb_params with
  6460. nb_params_in_scop.
  6461. * graphite.h (nb_params_in_scop): ... here.
  6462. (scop_nb_params): Removed.
  6463. (loop_domain_dim): Return something even when the loop was not
  6464. found in the hash table: avoid ICEing on all the graphite.exp
  6465. testcases.
  6466. 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6467. * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
  6468. * graphite.c (build_scop_dynamic_schedules): Schedule is built
  6469. according to nesting level.
  6470. (find_scop_parameters): Call instantiate_parameters.
  6471. (scan_tree_for_params): Extend it to handle general affine bounds.
  6472. Inner loop bound can depend on outer loop induction variable.
  6473. (setup_cloog_loop): tmp variable is allocated on stack. Call
  6474. instantiate_parameters with respect to outermost_loop_in_scop.
  6475. (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
  6476. graphite.h.
  6477. (create_empty_loop): Function loopify should be given edge
  6478. probability, instead of edge frequency. Dominance relation from
  6479. switch_bb to loop_header.
  6480. (clast_to_gcc_expression): Added handling of clast_reduction node.
  6481. (gloog): New functionality for removing old loop.
  6482. (test_dependence): Factored out from build_rdg_all_levels.
  6483. (build_rdg_all_levels): Dependence testing factored out to
  6484. test_dependence function.
  6485. * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
  6486. (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
  6487. from graphite.c
  6488. 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
  6489. * graphite.c (free_scop, param_index, initialize_cloog_names,
  6490. nb_params_in_scop): Use name_tree map instead of just a tree
  6491. for keeping track of the variable name associated to that tree.
  6492. (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
  6493. clast_to_gcc_expression, graphite_create_iv,
  6494. graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
  6495. graphite_stmt_to_gcc_stmt): New.
  6496. (gloog): Call these.
  6497. * graphite.h (struct name_tree): New.
  6498. (struct scop): Use name_tree instead of tree for params.
  6499. Store a vector of name_tree for new_ivs.
  6500. (SCOP_NEWIVS): New.
  6501. (scop_nb_params): Use name_tree instead of tree.
  6502. 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
  6503. Sebastian Pop <sebastian.pop@amd.com>
  6504. * tree-bounds.c: New.
  6505. * tree-bounds.h: New.
  6506. * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
  6507. * passes.c: Schedule pass_bounds_early, pass_bounds_late.
  6508. * builtins.c (expand_builtin_alloca): Add flag_bounds as for
  6509. flag_mudflap.
  6510. * gcc.c: Same.
  6511. * toplev.c: Same.
  6512. * c-cppbuiltin.c: Same.
  6513. * c-pragma.c: Same.
  6514. * common.opt: Same.
  6515. * varasm.c: Same.
  6516. * tree-outof-ssa.c: Same.
  6517. * c-common.c: Same.
  6518. * Makefile.in: Same.
  6519. 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
  6520. Sebastian Pop <sebastian.pop@amd.com>
  6521. * tree-loop-distribution.c (remaining_stmts,
  6522. upstream_mem_writes): Removed static variables.
  6523. (copy_loop_before, create_bb_after_loop,
  6524. mark_nodes_having_upstream_mem_writes, free_rdg_components,
  6525. rdg_build_components, rdg_build_partitions,
  6526. dump_rdg_partitions): Extern.
  6527. (generate_loops_for_partition, generate_code_for_partition): Do not
  6528. return a bool.
  6529. (already_processed_vertex_p, predecessor_has_mem_write,
  6530. mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
  6531. rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
  6532. rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
  6533. build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
  6534. Pass remaining_stmts and upstream_mem_writes as parameters.
  6535. (rdg_component): Moved...
  6536. (build_rdg_partition_for_component): Do not aggregate components when
  6537. flag_streamize_loops is set.
  6538. (gen_sequential_loops): New.
  6539. (ldist_gen): Call gen_sequential_loops.
  6540. * tree-pass.h (pass_loop_streamization): Declared.
  6541. * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
  6542. basic blocks when loops structures exist.
  6543. * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
  6544. * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
  6545. * tree-parloops.c (take_address_of, eliminate_local_variables_1,
  6546. eliminate_local_variables_stmt, eliminate_local_variables,
  6547. separate_decls_in_loop_name, separate_decls_in_loop_stmt,
  6548. separate_decls_in_loop, gen_parallel_loop): Make them work on a region
  6549. of code delimited by two edges in the CFG.
  6550. (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
  6551. (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
  6552. (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
  6553. the case of parallelisation of reductions.
  6554. (create_loop_fn): Extern.
  6555. (create_omp_parallel_region): New.
  6556. * tree-data-ref.c (dump_data_dependence_relation): Don't call
  6557. dump_data_reference for printing dra and drb.
  6558. (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
  6559. RDGE_RELATION.
  6560. (build_rdg): Don't call free_dependence_relations for the moment, as
  6561. we attach dependence relations on each edge of the RDG.
  6562. To be fixed later.
  6563. * tree-data-ref.h (rdg_component): ...here.
  6564. (struct rdg_edge): New field ddr_p relation.
  6565. (RDGE_RELATION): New.
  6566. (create_bb_after_loop, copy_loop_before,
  6567. mark_nodes_having_upstream_mem_writes, rdg_build_components,
  6568. rdg_build_partitions, dump_rdg_partitions,
  6569. free_rdg_components): Declared.
  6570. * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
  6571. BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
  6572. * tree-loop-streamization.c: New.
  6573. * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
  6574. create_omp_parallel_region, expr_invariant_in_region_p): Declared.
  6575. * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
  6576. * tree-cfg.c (gather_blocks_in_sese_region): Extern.
  6577. * passes.c: Schedule pass_loop_streamization.
  6578. 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
  6579. * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
  6580. update comment.
  6581. 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
  6582. * graphite.c (dot_all_scops): Update formatting.
  6583. Bbs can now be part of more than one SCoP.
  6584. 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
  6585. * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
  6586. malloc problems.
  6587. (loop_domain_dim): Check for unregistered toplev SCOP loop.
  6588. * graphite.h (loop_to_cloog_loop): New.
  6589. 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6590. * graphite.c (loop_domain_dim, ref_nb_loops,
  6591. loop_iteration_vector_dim): New.
  6592. (build_access_matrix_with_af, build_access_matrix,
  6593. initialize_dependence_polyhedron): Fixed for new matrix layout.
  6594. No longer assume that all iteration domains are of the same
  6595. dimensionality.
  6596. 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
  6597. * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
  6598. defined in a loop at depth 0 is invariant.
  6599. * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
  6600. * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
  6601. be called at loop depth 0.
  6602. * graphite.c (basic_block_simple_for_scop_p): Take the scop as
  6603. a parameter.
  6604. (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
  6605. (down_open_scop): Removed.
  6606. (loop_in_scop_p): Redefined.
  6607. (scop_affine_expr): New argument: scop.
  6608. (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
  6609. a harmful statement ending a scop.
  6610. (basic_block_simple_for_scop_p): New argument: scop.
  6611. (get_loop_start): Removed.
  6612. (new_scop): Initialize SCOP_LOOPS.
  6613. (free_scop): Free SCOP_LOOPS.
  6614. (succs_at_same_depth, preds_at_same_depth): New.
  6615. (end_scop): Test the validity of a scop.
  6616. (add_dominators_to_open_scops): New.
  6617. (test_for_scop_bound): Call add_dominators_to_open_scops.
  6618. Add cases for opening and closing multiple scops.
  6619. (build_scops, build_scop_bbs): Iterate over basic blocks in
  6620. depth first order.
  6621. (build_graphite_bb): Pass scop directly.
  6622. (dfs_bb_in_scop_p): New.
  6623. (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
  6624. several times.
  6625. (nb_loops_around_gb): Use loop_in_scop_p.
  6626. (schedule_to_scattering): Disabled for the moment the code computing
  6627. the "textual order for outer loop".
  6628. * graphite.h (struct scop): New field loops.
  6629. (SCOP_LOOPS): New.
  6630. (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
  6631. * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
  6632. 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
  6633. Sebastian Pop <sebastian.pop@amd.com>
  6634. * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
  6635. * common.opt (fstreamize-loops): New.
  6636. * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
  6637. BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
  6638. BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
  6639. BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
  6640. 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6641. * tree-data-ref.c (build_empty_rdg): New.
  6642. (build_rdg): Use it.
  6643. * tree-data-ref.h (build_empty_rdg): Declared.
  6644. * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
  6645. (find_vertex_for_stmt): Removed.
  6646. (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
  6647. 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
  6648. * tree-loop-distribution.c (generate_builtin): After cancelling the
  6649. loop tree, also delete basic blocks.
  6650. (rdg_flag_uses): Stop recursion when a vertex has already been
  6651. processed.
  6652. 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6653. * graphite.c (build_scop_alpha): Removed.
  6654. (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
  6655. and dump_dependence_graph to avoid compiler warnings.
  6656. 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6657. * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
  6658. * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
  6659. * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
  6660. eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
  6661. (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
  6662. (initialize_dependence_polyhedron, find_vertex_for_stmt,
  6663. initialize_data_dependence_polyhedron, is_empty_polyhedron,
  6664. statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
  6665. dump_dependence_graph): New.
  6666. * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
  6667. (GBB_ALPHA): New.
  6668. (struct scop): New field loop2cloog_loop.
  6669. (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
  6670. RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
  6671. 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6672. * graphite.c (build_graphite_bb): Fix initialization
  6673. of the graphite basic block.
  6674. 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
  6675. * graphite.c (scan_tree_for_params): Rewrite for the new layout of
  6676. loop domain matrix. Pass in the number of loops contained in the
  6677. constraint matrix.
  6678. (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
  6679. (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
  6680. loops that are not surrounding the current loop are not represented
  6681. in the domain constraint matrix.
  6682. (build_scop_iteration_domain): Initial domain constraint matrix
  6683. contains only the eq/ineq, cst, and scop parameters columns.
  6684. 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
  6685. * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
  6686. (print_graphite_bb): Print scattering.
  6687. 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
  6688. * graphite.c (initialize_cloog_names): Initialize names of
  6689. scattering variables.
  6690. 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
  6691. * graphite.c (dot_all_scops_1): Disable debug output while
  6692. printing graph.
  6693. 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
  6694. * graphite.c (find_transform): Change cloog output language to C.
  6695. 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
  6696. * tree-loop-distribution.c (generate_memset_zero,
  6697. generate_builtin, generate_code_for_partition,
  6698. rdg_flag_all_uses): New.
  6699. (rdg_flag_uses): Gather in the same partition the statements defining
  6700. the VUSES of the current statement.
  6701. (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
  6702. Gather in the same partition not only the stores to the same memory
  6703. access, but also the reads.
  6704. (ldist_generate_loops): Renamed ldist_gen.
  6705. 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
  6706. Tobias Grosser <grosser@fmi.uni-passau.de>
  6707. * graphite.c (setup_cloog_loop): Chain all cloog loops with the
  6708. next pointer, don't use the inner pointer.
  6709. 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
  6710. * graphite.c (dot_all_scops, dot_all_scops_1): New.
  6711. (find_transform): Call dot_all_1.
  6712. * graphite.h (dot_all_scops): Declared.
  6713. 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
  6714. * tree-loop-distribution.c: Fix apsi.f ICE.
  6715. (create_bb_after_loop): New.
  6716. (generate_loops_for_partition): Use it.
  6717. * gfortran.dg/ldist-1.f90: New.
  6718. * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
  6719. * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
  6720. 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
  6721. * graphite.c (find_transform): Dump cloog program sent to cloog.
  6722. 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
  6723. * graphite.c (initialize_cloog_names): Initialize cloog
  6724. iterator names.
  6725. 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
  6726. * graphite.c (build_scop_context): Fix typo, for the matrix
  6727. format: insert '0 >= 0' instead of '-1 >= 0'.
  6728. 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
  6729. * Fix merge problems.
  6730. 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
  6731. * graphite.c (setup_cloog_loop): Fix typo.
  6732. 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
  6733. * doc/invoke.texi (-ftree-loop-distribution): Documented.
  6734. * tree-loop-distribution.c: Reimplemented.
  6735. * tree-pass.h (pass_loop_distribution): New.
  6736. * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
  6737. print_loops.
  6738. * graphds.h (struct graph): New field indexes.
  6739. * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
  6740. * tree-vect-analyze.c: Remove declaration of static functions when not
  6741. needed.
  6742. * tree-vectorizer.c: Same.
  6743. (rename_variables_in_loop): Now extern.
  6744. (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
  6745. tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
  6746. calling redirect_edge_and_branch_force.
  6747. * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
  6748. * tree-data-ref.c: Don't include tree-chrec.h.
  6749. (debug_data_dependence_relations): New.
  6750. (dump_data_dependence_relation): Call dump_data_reference on data refs
  6751. in the relation.
  6752. (same_access_functions): Moved...
  6753. (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
  6754. (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
  6755. debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
  6756. struct rdg_vertex_info, ): New.
  6757. (create_rdg_edge_for_ddr): Compute the dependence level before looking
  6758. at DDR_REVERSED_P.
  6759. (create_rdg_vertices): Initialize the htab of graph->indexes.
  6760. Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
  6761. (stmts_from_loop): Don't save LABEL_EXPR.
  6762. (hash_stmt_vertex_info, eq_stmt_vertex_info,
  6763. hash_stmt_vertex_del): New.
  6764. (build_rdg): Initialize rdg->indexes.
  6765. (free_rdg, stores_from_loop, ref_base_address,
  6766. rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
  6767. have_similar_memory_accesses_1, ref_base_address_1,
  6768. remove_similar_memory_refs): New.
  6769. * tree-data-ref.h: Include tree-chrec.h.
  6770. (debug_data_dependence_relations): Declared.
  6771. (same_access_functions): ...here. Now static inline.
  6772. (ddr_is_anti_dependent, ddrs_have_anti_deps,
  6773. ddr_dependence_level): New.
  6774. (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
  6775. (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
  6776. RDG_MEM_READS_STMT): New.
  6777. (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
  6778. debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
  6779. rdg_vertex_for_stmt): Declared.
  6780. (struct rdg_edge): New field level.
  6781. (RDGE_LEVEL, free_rdg): New.
  6782. (stores_from_loop, remove_similar_memory_refs,
  6783. rdg_defs_used_in_other_loops_p,
  6784. have_similar_memory_accesses): Declared.
  6785. (rdg_has_similar_memory_accesses): New.
  6786. * lambda.h (dependence_level): New.
  6787. * common.opt (ftree-loop-distribution): New.
  6788. * tree-flow.h (debug_loop_ir): Renamed debug_loops.
  6789. (print_loop_ir): Renamed print_loops.
  6790. (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
  6791. tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
  6792. * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
  6793. (tree-loop-distribution.o): Added.
  6794. * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
  6795. (mark_virtual_ops_in_bb): New.
  6796. (print_loops_bb, debug_loop_num, debug_loop): New.
  6797. * passes.c: Scheduled pass_loop_distribution.
  6798. 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
  6799. * graphite.c (scan_tree_for_params): Correct the number of columns
  6800. for polylib format.
  6801. (nb_flat_iterator): New.
  6802. (setup_cloog_loop): Initialize to 1 the first column for inequalities.
  6803. (build_scop_iteration_domain): Correct the number of columns for
  6804. polylib format.
  6805. 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
  6806. * Merge from mainline (129697:130800).
  6807. 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
  6808. * graphite.c (build_graphite_bb): SCoP's basic blocks are post
  6809. dominated by SCoP's exit.
  6810. (graphite_transform_loops): Compute post dominators.
  6811. 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
  6812. * Merge from mainline (127169:129697).
  6813. 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
  6814. * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
  6815. parameter for the basic block that contains the expression. Use
  6816. outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
  6817. (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
  6818. the expression.
  6819. * graphite.h (gbb_loop): New.
  6820. (GBB_LOOP): Removed.
  6821. 2007-08-03 Sebastian Pop <sebpop@gmail.com>
  6822. * Makefile.in: Fix merge problem.
  6823. 2007-08-03 Sebastian Pop <sebpop@gmail.com>
  6824. * Merge from mainline (125309:127169).
  6825. * tree-loop-distribution.c: Disabled.
  6826. 2007-06-05 Sebastian Pop <sebpop@gmail.com>
  6827. * Merge from mainline (r123693:125309).
  6828. 2007-05-30 Sebastian Pop <sebpop@gmail.com>
  6829. * tree-loop-distribution.c (correct_modify_expr_p): Renamed
  6830. correct_modify_p
  6831. (correct_modify_p, check_statements, number_of_lvalue_uses,
  6832. number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
  6833. instead of MODIFY_EXPR.
  6834. (update_edge_with_ddv): Don't pass index_of_edge. Initialize
  6835. and push new edges.
  6836. 2007-05-24 Sebastian Pop <sebpop@gmail.com>
  6837. * tree-loop-distribution.c (struct rdg): Replace arrays by
  6838. VECs for edges and vertices.
  6839. (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
  6840. (RDGV_NB_PARTITIONS): New.
  6841. (PRDG_NBV, PRDG_NBE): Removed.
  6842. (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
  6843. dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
  6844. number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
  6845. 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
  6846. Sebastian Pop <sebpop@gmail.com>
  6847. * doc/invoke.texi (-ftree-loop-distribution): Document.
  6848. * tree-loop-distribution.c: New file.
  6849. * tree-pass.h (pass_loop_distribution): Declared.
  6850. * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
  6851. * tree-data-ref.c (initialize_data_dependence_relation): Initialize
  6852. and set reversed_p.
  6853. * tree-data-ref.h (data_dependence_relation): Add reversed_p.
  6854. (DDR_REVERSED_P): New.
  6855. * common.opt (-ftree-loop-distribution): New.
  6856. * tree-flow.h (distribute_loops): Declared.
  6857. * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
  6858. * passes.c (init_optimization_passes): Schedule loop distribution.
  6859. 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
  6860. * graphite.c (print_graphite_bb): Don't call dump_data_references.
  6861. (print_scop): Don't print when scop is NULL.
  6862. (build_scop_context, find_transform): Don't output to stderr.
  6863. 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
  6864. * tree-data-ref.c: Don't include graphite.h.
  6865. Comment out the code for printing data reference's scop.
  6866. (build_access_matrix_with_af): Moved...
  6867. * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
  6868. * graphite.c (build_access_matrix_with_af): ... here. Now static.
  6869. (print_graphite_bb): Print basic block's schedule.
  6870. (print_scop): Don't print the schedule, call cloog's pretty printer.
  6871. (bb_in_scop_p): A basic block is in a scop only if it is both
  6872. dominated and postdominated by the scop's entry and exit basic blocks.
  6873. (function_parameter_p): New.
  6874. (invariant_in_scop_p): Use function_parameter_p.
  6875. (new_scop, save_scop): New.
  6876. (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
  6877. save_scop.
  6878. (scan_tree_for_params): Directly build the constraint as CloogMatrix.
  6879. (loop_in_scop_p): New.
  6880. (scop_record_loop): Use loop_in_scop_p.
  6881. (build_scop_domain): Renamed build_scop_iteration_domain.
  6882. (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
  6883. nb_params_in_scop, build_scop_context, first_loop_in_scop,
  6884. setup_cloog_loop, dot_scop_1, dot_scop): New.
  6885. * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
  6886. (struct scop): Add a pointer to cloog's representation of a program.
  6887. 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
  6888. * doc/invoke.texi (-ftree-check-verbose): Renamed
  6889. -ftree-checks-verbose.
  6890. * common.opt (flag_tree_check_verbose): Renamed
  6891. flag_tree_checks_verbose.
  6892. * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
  6893. 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
  6894. * configure: Regenerated.
  6895. * config.in: Regenerated.
  6896. * tree-ssa-loop.c (graphite_transforms): Execute
  6897. graphite_transform_loops only when HAVE_cloog.
  6898. * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
  6899. * graphite.c: Include polylibgmp.h and cloog.h.
  6900. (graphite_transform_loops): Removed loops parameter.
  6901. * tree-flow.h (graphite_transform_loops): Update declaration.
  6902. * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
  6903. (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
  6904. (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
  6905. (OBJS-common): Remove dependence on graphite.o.
  6906. (BACKEND): Depend on @GRAPHITE@.
  6907. 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
  6908. * doc/invoke.texi (-ftree-check-verbose): Documented.
  6909. * gcc.dg/tree-checker/tree-checks-1.c: New.
  6910. * gcc.dg/tree-checker/tree-checks-2.c: New.
  6911. * gcc.dg/tree-checker/tree-checks-3.c: New.
  6912. * gcc.dg/tree-checker/tree-checks-4.c: New.
  6913. * gcc.dg/tree-checker/tree-checks.exp: New.
  6914. * gcc.dg/tree-checker/condates.crp: New.
  6915. * common.opt (ftree-checks-verbose): New.
  6916. * tree-check.c (tree_check_warning): Move extra stderr output
  6917. under control of flag_tree_check_verbose.
  6918. 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
  6919. * tree-match.c: Fix comments formatting.
  6920. * tree-match.h: Fix comments formatting.
  6921. * tree-check.c: Fix comments formatting.
  6922. (tree_check_init): Restructure.
  6923. 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
  6924. * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
  6925. 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
  6926. * Merge from mainline (r120733:123693).
  6927. 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
  6928. * condate.y: New file.
  6929. * tree-match.h (struct patt_info_s): New field sign.
  6930. (struct condate_s): New field msg.
  6931. (normalize_condate, name_condate, add_condate): New.
  6932. (conds[], condate_parse): Made extern.
  6933. * tree-check.c (tree_check_warning): First arg changed to cond;
  6934. warning reformatted.
  6935. (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
  6936. (tree_scan): New.
  6937. (tree_check): Process trivial condates.
  6938. (read_delimited_string): Removed.
  6939. (print_cond): Print name and msg.
  6940. (conds[]): Made extern.
  6941. (parse_tree_check_file_once): Rewritten to use the parser in
  6942. condate.y.
  6943. Processing of option --tree_check_string moved to tree_scan().
  6944. * Makefile.in: Added condate.y
  6945. 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
  6946. * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
  6947. Use VECs instead of varrays.
  6948. * diagnostic.h (lazy_dump_generic_node): Update declaration.
  6949. * Makefile.in (pretty-print.o): Depend on vec.h.
  6950. * pretty-print.c: Include tree.h and vec.h.
  6951. (pp_clear_state, pp_write_list_to_stream, pp_base_format,
  6952. pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
  6953. new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
  6954. pp_free_list): Use VECs instead of varrays.
  6955. * pretty-print.h: Do not include varray.h.
  6956. (struct tree_chunk_s): Declaration moved before its use.
  6957. (output_buffer): Rename varray field to chunks.
  6958. * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
  6959. tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
  6960. save_global_holes): Use VECs instead of varrays.
  6961. * tree-match.h: Declare VECs of cfg_node, and hole_p.
  6962. * tree-check.c (scan_cfg_stmts, push_node,
  6963. print_matching_stmt): Removed.
  6964. (tree_check_instance, push_global_holes_if_new, tree_check,
  6965. execute_tree_check): Use VECs instead of varrays.
  6966. (gate_tree_check): Don't execute the CFG check when basic_block_info
  6967. is not available.
  6968. 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
  6969. * Merge from mainline (r115016:120733).
  6970. 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
  6971. * Merge from mainline (r117632:117661).
  6972. 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
  6973. * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
  6974. * tree-pass.h (TDF_DEBUG, debug_p): New.
  6975. * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
  6976. get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
  6977. get_loop_exit_condition, analyze_evolution_in_loop,
  6978. analyze_initial_condition, analyze_scalar_evolution,
  6979. instantiate_parameters, number_of_latch_executions): Use debug_p.
  6980. * tree-chrec.c (chrec_apply): Use debug_p.
  6981. * tree-data-ref.c: Include graphite.h.
  6982. (dump_data_reference): Print also the access matrix.
  6983. (analyze_array, analyze_indirect_ref, init_data_ref,
  6984. analyze_offset_expr, address_analysis, object_analysis,
  6985. create_data_ref, finalize_ddr_dependent,
  6986. non_affine_dependence_relation, analyze_ziv_subscript,
  6987. analyze_siv_subscript_cst_affine,
  6988. compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
  6989. can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
  6990. analyze_miv_subscript, analyze_overlapping_iterations,
  6991. build_classic_dist_vector, subscript_dependence_tester,
  6992. compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
  6993. (build_access_matrix_with_af): No longer static.
  6994. * tree-data-ref.h (scop_p): ... declaration here.
  6995. (data_reference.scop): New field.
  6996. (DR_SCOP, DR_ACCESS_MATRIX): New.
  6997. (build_access_matrix_with_af, dr_num_subscripts): Declared.
  6998. * graphite.c (print_graphite_bb): Call dump_data_references.
  6999. (print_scop): Use scop_nb_loops and scop_dim_domain.
  7000. (test_for_scop_bound): Use debug_p.
  7001. (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
  7002. scop_nb_params.
  7003. (scop_loop_index): Moved...
  7004. (scop_record_loop): New.
  7005. (build_scop_loop_nests): Use scop_record_loop.
  7006. (build_scop_domain): Use scop_dim_domain.
  7007. (build_access_matrix): Implemented.
  7008. (build_scop_canonical_schedules): Use scop_nb_loops.
  7009. (build_graphite_bb): Initialize GBB_SCOP.
  7010. * graphite.h (scop_p): Moved...
  7011. (graphite_bb.scop): New field.
  7012. (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
  7013. scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
  7014. SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
  7015. (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
  7016. scop_loop_index): New.
  7017. * Makefile.in (tree-data-ref.o): Depends on graphite.h.
  7018. 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
  7019. * Merge from mainline (r117661:120450).
  7020. 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
  7021. * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
  7022. at the first declaration outside the varying loop, instantiate as
  7023. far as possible.
  7024. * tree-chrec.c (for_each_scev_op): New.
  7025. * tree-chrec.h (for_each_scev_op): Declared.
  7026. * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
  7027. * tree-data-ref.c (get_references_in_stmt,
  7028. find_data_references_in_stmt): New, from trunk.
  7029. (find_data_references_in_loop): Use get_references_in_stmt
  7030. and find_data_references_in_loop, modified as in trunk.
  7031. (build_access_matrix_with_af): New.
  7032. * tree-data-ref.h (data_reference): Add a field access_matrix.
  7033. (data_ref_loc): New, as in trunk.
  7034. * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
  7035. invariant_in_scop_p, param_index, scan_tree_for_params,
  7036. scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
  7037. idx_record_param, idx_record_params, build_access_matrix,
  7038. build_scop_data_accesses, build_scop_canonical_schedules,
  7039. build_graphite_bb, build_scop_bbs, find_params_in_bb,
  7040. build_scop_params): New.
  7041. * graphite.h (graphite_bb): New.
  7042. (scop): Add fields static_schedule, params, loop_nest,
  7043. iteration_domain.
  7044. * lambda.h: Declare vecs of lambda_matrix.
  7045. * tree-flow.h (print_loop_ir_bb): Declared.
  7046. * tree-cfg.c (print_loop_ir_bb): New.
  7047. (print_loop): Use print_loop_ir_bb.
  7048. 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
  7049. * Merge from mainline (r115016:117632).
  7050. 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
  7051. * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
  7052. break due to a warning.
  7053. 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
  7054. * graphite.c (print_scops, debug_scops): New.
  7055. (graphite_transform): Renamed graphite_find_transform.
  7056. * graphite.h (debug_scops): Declared.
  7057. 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
  7058. * tree-match.c: Reformat following the GNU style.
  7059. * tree-match.h: Reformat following the GNU style.
  7060. * tree-pattern.h: Removed empty file.
  7061. * Makefile.in: Remove references to tree-pattern.h.
  7062. * tree-check.c: Reformat following the GNU style.
  7063. (execute_tree_check): Move gate condition code to...
  7064. (gate_tree_check): ...here. New function.
  7065. (pass_check): Use the gate function.
  7066. 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
  7067. * tree-pattern.h: New. Tree pattern matching and checking using
  7068. concrete syntax.
  7069. * tree-check.c: New. Tree/CFG checking pass.
  7070. * tree-match.c: New. Library for tree pattern matching.
  7071. * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
  7072. * toplev.c, flags.h: Add globals for tree-check pass.
  7073. * Makefile.in: Integrate the files in tree-check pass.
  7074. * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
  7075. * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
  7076. Introduce a "lazy" pretty-print mode.
  7077. * tree.c, tree.h: Add tree_name.
  7078. 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
  7079. * doc/invoke.texi (-fgraphite): Correct typo.
  7080. * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
  7081. use of print_loop_ir.
  7082. * gcc.dg/graphite/scop-1.c: New.
  7083. * gcc.dg/graphite/scop-2.c: New.
  7084. * gcc.dg/graphite/graphite.exp: New.
  7085. * graphite.c: Include domwalk.h.
  7086. (print_scop): Print only the entry and exit blocks.
  7087. (debug_scop): No longer static.
  7088. (affine_expr): Fix formating. Return also true when the expression is
  7089. constant.
  7090. (stmt_simple_for_scop_p): Fix formating.
  7091. (build_scops): Use domwalk.
  7092. (get_loop_start, end_scop, test_for_scop_bound): New.
  7093. (graphite_transform_loops): Avoid printing on stderr.
  7094. * graphite.h (debug_scop): Declared.
  7095. * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
  7096. * Makefile.in (graphite.o): Depend on domwalk.h.
  7097. * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
  7098. declarations for static functions.
  7099. (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
  7100. controlling output verbosity.
  7101. 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
  7102. Plesco Alexandru <shurikx@gmail.com>
  7103. * doc/invoke.texi (-fgraphite): Document.
  7104. * tree-pass.h (pass_graphite_transforms): Declared.
  7105. * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
  7106. * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
  7107. (pass_graphite_transforms): Defined.
  7108. * tree-data-ref.c (free_data_ref, data_reference): Extern.
  7109. * tree-data-ref.h (free_data_ref, data_reference): Declared.
  7110. * graphite.c, graphite.h: New.
  7111. * common.opt (fgraphite): Declared.
  7112. * tree-flow.h (graphite_transform_loops): Declared.
  7113. * Makefile.in (OBJS-common): Add graphite.o.
  7114. (graphite.o): New rule.
  7115. * passes.c (pass_graphite_transforms): Scheduled.