I thought the fellas question about a Wallmart AR15 through history was a good question and started crunching some numbers and considering some battles throughout history for him so I'm not wasting my answer. Here goes.
A Wallmart AR15 is the same as any AR15 (although possibly some variability in reliability from brand to brand).
But your real question is: At what point in history would having a 5.56x45NATO in a semi automatic rifle with about 30 round capacity and as much ammo as one person could carry through a time machine make you a supreme warlord or at least a very OP wizard? I have had the same thought.
Assuming we're talking a stock AR15 with irons or a LPVO and no particularly fancy muzzle device then we have a rifle that is accurate to about 300 yards in capable hands. Still reasonably dangerous at 500 but hard to shoot accurately without a well set up rifle.
A trained soldier carries about 200 rounds of ammo. So if you're well prepared for your trip and can take an extra bit of gear let's give you 1000 rounds. But we'll say (due to budget constraints and keeping you reasonably incognito) that you haven't taken along any night vision, thermal imaging, super high power flash lights, or body armour. Just a man, a gun, and 1000 rounds of ammo.
The L1A1 was introduced in 1954 and the AR15 in 1956 so we have to go a bit earlier for it to be useful.
1940s: WW2 era I don't think you'll make any difference. The majority of firearms are already pretty modern and a huge amount of casualties are from artillery not small arms. Even in minor battles you'll come up against machine guns and armoured vehicles.
1910s: WW1 era. Again modern firearms and long range artillery. You won't see many tanks though or much air warfare. Less likely to run into automatic or semi automatic weapons but you still will. A trained soldier with an AR15 working in collaboration with a unit of the time may turn the tide on some small battles but overall make very little difference with significant naval and strategic battles being key. Even if you land 50% of you shots as casualties then 500 is a tiny drop against the 15-20 million who died.
1900-1910: a pretty violent era for the world with wars all across the imperial world. Again most conflicts last 12 months to 4 years and result in 150,000 plus casualties. There is usually a significant element of naval warfare and your 1000 rounds won't go very far. Recognisably modern bolt action rifles are common and put just as much energy on target as you do at similar ranges.
1840-1890s: in the later half (1850 onwards) you are up against rifled muskets, lever action and bolt action rifles. Things are still quite modern. Most soldiers rival your range and accuracy. Many wars such as the Crimean War, American Revolution, Civil war, and Franko-Prussian War push one million casualties. Again, if working into an existing unit 1000 rounds of accurate semi automatic fire could influence small skirmishes but not impact outcomes of wars.
In the smallest parts of the world (I live in New Zealand) you may change the face of a nation. The New Zealand Musket Wars are being fought amongst tribes and settlers and the New Zealand population is on 2,000 settlers to 80,000 Māori. 40 casualties is enough to decimate a tribe and you've bought enough ammo to wipe out the entire colonial army 4 times over.
1800-1840: This is where things start getting interesting. Muskets have limited range as rifling doesn't exist. A single AR15 could outrange and decimate entire formations before they even get close to you. You do however only have as long as it takes several hundred men with swords to ride horses 300m towards before you're dead anyway. So you'll still need a full size supporting army for the big jobs and you only have enough ammo for a couple of battles, not enough to last a war.
In many colonial uprisings through Africa and the Pacific as well as regional wars in South America you have more than enough ammo to see a war through and generate double the casualties inflicted by both side. So you'd have significant impact in those places.
1700s: The French - Indian Wars last 9 years. Have a total combatants of about 70,000 with peak strengths of less than 2000 military. It's fair to say that a single AR15 would turn the tide on just about any battle. But to see through 9 years and over 30,000 total casualties might be a stretch.
Most coalition wars in Europe are fought by 4+ countries, involve 400,000+ soldiers and see 100,000+ casualties. So you're still not a major player.
By now you're realising that your single AR15 really only makes a difference when the population is smaller and wars fought by much fewer people. Large, organised armies have been fielded well into the medieval period. Even prior to the Epoch Greece could field 50,000 warriors that would run you down long before you ran out of ammo. But your massive technological advantage and ability to change the future of small countries or remove strategic targets on the battlefield starts in around 1840. Probably one of the largest and earliest impacts you could have would be to side with the Inca or Aztec in the 1500s to repel the Spanish invasion. Often groups of less than 100 Spanish could defeat tens of thousands of natives.