The line between a tax break and illegal state aid is exceedingly blurry. (It swung back and forth as it went through the courts, but the final ruling was "illegal state aid")
Extra-national laws are a real minefield, though. Ireland is in a great position without having too do very much of its own to have got there other than sign the right agreements.