You can always take deduction for foreign tax paid on Schedule A, or calculate foreign tax credit using form 1116. Credit is usually more beneficial, but in some cases you will be better of with a deduction.
However, in very specific cases, you can claim the credit directly on your 1040 without using the form 1116. Look at the 1040 instructions for line 47:
Exception. You do not have to complete Form 1116 to take this credit
if all of the following apply.
All of your foreign source gross income was from interest and dividends and all of that income and the foreign tax paid on it were
reported to you on Form 1099-INT, Form 1099-DIV, or Schedule K-1 (or
substitute statement).
The total of your foreign taxes was not more than $300 (not more than $600 if married filing jointly).
You held the stock or bonds on which the dividends or interest were paid for at least 16 days and were not obligated to pay these
amounts to someone else.
You are not filing Form 4563 or excluding income from sources within Puerto Rico.
All of your foreign taxes were:
Legally owed and not eligible for a refund or reduced tax rate under a tax treaty, and
Paid to countries that are recognized by the United States and do not support terrorism.
For more details on these requirements, see the Instructions for
Form 1116.