Idiopathic pulmonary fibrosis (IPF) is a chronic lung disease that affects an individual's ability to breathe. This study will evaluate the effectiveness of sildenafil, a medication that increases blood flow to the lungs, at improving breathing function, exercise capacity, and quality of life in people with advanced IPF.