Taylor Swift sings Calvin Harris song

The track sparked a row between Taylor and Calvin after they split in May.

FILE: Taylor Swift 1989 tour. Picture: CNN.

TEXAS - Taylor Swift performed This Is What You Came For, the song she wrote for ex-boyfriend Calvin Harris, at her only full concert on 2016 on Saturday.

The 26-year-old singer took to the stage at the Formula 1 United States Grand Prix and as well as playing her biggest hits for the 80,000-strong crowd, she also treated the audience at the Super Stage area in Del Valle, Texas, to a piano-led rendition of This Is What You Came For, which was a chart-topping hit for the DJ in collaboration with Rihanna earlier this year.

The track sparked a row between Taylor and Calvin after they split in May, as weeks later it was rumoured the Shake It Off hitmaker was the person behind songwriter pseudonym Nils Sjoberg.

And after representatives for the singer - who struck up a romance with Tom Hiddleston after splitting from the Scottish DJ, though they have now split - confirmed her involvement, Calvin took to Twitter to slam her for trying to "tear [him] down".

He wrote: "And she sings on a little bit of it too. Amazing lyric writer and she smashed it as usual.

"Hurtful to me at this point that her and her team would go so far out of their way to try and make ME look bad at this stage though. I figure if you're happy in your new relationship you should focus on that instead of trying to tear your ex bf down for something to do

"I know you're off tour and you need someone new to try and bury like Katy ETC but I'm not that guy, sorry. I won't allow it

"Please focus on the positive aspects of YOUR life because you've earned a great one. God bless everyone have a beautiful day (sic)."

Calvin brought Rihanna in to record the vocals on the song as he and Taylor- who dated for 15 months - feared their relationship would overshadow the track if they released it together.

However, they split in May and the so-called "breaking point" in their romance reportedly came after he was "disrespectful" by saying he'd never work with her while promoting the track.