aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/OptimizeExts.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-01-19Do not extend extension results beyond the use of a PHI instruction at the ↵Evan Cheng1-0/+12
start of a use block. A PHI use is expected to kill its source values. llvm-svn: 93895
2010-01-13Commit some changes I had managed to lose last night while refactoring the ↵Evan Cheng1-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
2010-01-13Add comment; refactor; avoid pulling in DT if it's not used.Evan Cheng1-79/+110
llvm-svn: 93306
2010-01-13Add a quick pass to optimize sign / zero extension instructions. For targets ↵Evan Cheng1-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