diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-12-20 11:56:02 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-12-20 11:56:02 +0000 |
commit | 83a0b6abd0f43ee3ed6755fa9c8a2e3ee13e04e7 (patch) | |
tree | 5e84d3c7053a7480eec29e06ad41cff7da1af209 /llvm/lib/Target/Sparc/SparcMachineFunctionInfo.cpp | |
parent | d4f66c7d5fca129b3af4c8455fc26451591393ce (diff) | |
download | bcm5719-llvm-83a0b6abd0f43ee3ed6755fa9c8a2e3ee13e04e7.tar.gz bcm5719-llvm-83a0b6abd0f43ee3ed6755fa9c8a2e3ee13e04e7.zip |
[SystemZ] Optimize comparisons with truncated extended loads
If the extension of a loaded value is compared against zero and used in
other arithmetic, InstCombine will change the comparison to use the
unextended load. It's also possible that the comparison could be against
the unextended load from the outset.
In DAG form this becomes a truncation of an extending load. We want to
strip the truncation if possible so that we can use load-and-test instructions.
llvm-svn: 197804
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcMachineFunctionInfo.cpp')
0 files changed, 0 insertions, 0 deletions