summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/OptimizeExts.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Commit some changes I had managed to lose last night while refactoring the ↵Evan Cheng2010-01-131-1/+6
| | | | | | | | code. Avoid change use of PHI instructions because it's not legal to insert any instructions before them. This fixes PR6027. llvm-svn: 93335
* Add comment; refactor; avoid pulling in DT if it's not used.Evan Cheng2010-01-131-79/+110
| | | | llvm-svn: 93306
* Add a quick pass to optimize sign / zero extension instructions. For targets ↵Evan Cheng2010-01-131-0/+149
where the pre-extension values are available in the subreg of the result of the extension, replace the uses of the pre-extension value with the result + extract_subreg. For now, this pass is fairly conservative. It only perform the replacement when both the pre- and post- extension values are used in the block. It will miss cases where the post-extension values are live, but not used. llvm-svn: 93278
OpenPOWER on IntegriCloud