diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-08 06:47:33 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-08 06:47:33 +0000 |
| commit | 3822ff5c71478c7c90a50ca57045fb676fcb5005 (patch) | |
| tree | 44d109d0052024ecdbcfceb248446b56a7bfce0f /lib/Analysis/IPA | |
| parent | 73fb07566b24d43bb116c2ade0297d90ec72490d (diff) | |
| download | external_llvm-3822ff5c71478c7c90a50ca57045fb676fcb5005.zip external_llvm-3822ff5c71478c7c90a50ca57045fb676fcb5005.tar.gz external_llvm-3822ff5c71478c7c90a50ca57045fb676fcb5005.tar.bz2 | |
For PR950:
This patch converts the old SHR instruction into two instructions,
AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not
dependent on the sign of their operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
| -rw-r--r-- | lib/Analysis/IPA/Andersens.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index de6cb5a..30ec89b 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -784,7 +784,8 @@ void Andersens::visitInstruction(Instruction &I) { case Instruction::Unreachable: case Instruction::Free: case Instruction::Shl: - case Instruction::Shr: + case Instruction::LShr: + case Instruction::AShr: return; default: // Is this something we aren't handling yet? |
