aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-01-10 08:21:59 +0000
committerHal Finkel <hfinkel@anl.gov>2015-01-10 08:21:59 +0000
commit5d5d1539ccd8e960260fb0bad1d2733a51e71b27 (patch)
treee9640ec55f1a348f342a57c93c5cae32a08877dc /clang/lib/Frontend/CompilerInvocation.cpp
parent17744c1e0d710e318550c30afddcf30186125b8f (diff)
downloadllvm-5d5d1539ccd8e960260fb0bad1d2733a51e71b27.zip
llvm-5d5d1539ccd8e960260fb0bad1d2733a51e71b27.tar.gz
llvm-5d5d1539ccd8e960260fb0bad1d2733a51e71b27.tar.bz2
[PowerPC] Mark zext of a small scalar load as free
This initial implementation of PPCTargetLowering::isZExtFree marks as free zexts of small scalar loads (that are not sign-extending). This callback is used by SelectionDAGBuilder's RegsForValue::getCopyToRegs, and thus to determine whether a zext or an anyext is used to lower illegally-typed PHIs. Because later truncates of zero-extended values are nops, this allows for the elimination of later unnecessary truncations. Fixes the initial complaint associated with PR22120. llvm-svn: 225584
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions