summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCBranchSelector.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-24 23:08:16 +0000
committerChris Lattner <sabre@nondot.org>2005-08-24 23:08:16 +0000
commit2b54400f085391a247dd2c3fffc9f36f7b2dc867 (patch)
treec35e216bba16f85ddd92f354251bae5e090e6ef9 /lib/Target/PowerPC/PPCBranchSelector.cpp
parent7651fa4a7ed1c81abb004847af1eeb3beb9c88fd (diff)
downloadllvm-2b54400f085391a247dd2c3fffc9f36f7b2dc867.tar.gz
llvm-2b54400f085391a247dd2c3fffc9f36f7b2dc867.tar.bz2
llvm-2b54400f085391a247dd2c3fffc9f36f7b2dc867.tar.xz
Split IMPLICIT_DEF into IMPLICIT_DEF_GPR and IMPLICIT_DEF_FP, so that the
instructions take a consistent reg class. Implement ISD::UNDEF in the dag->dag selector to generate this, fixing UnitTests/2003-07-06-IntOverflow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCBranchSelector.cpp')
-rw-r--r--lib/Target/PowerPC/PPCBranchSelector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCBranchSelector.cpp b/lib/Target/PowerPC/PPCBranchSelector.cpp
index b80ab5e9d7..9a29eec55f 100644
--- a/lib/Target/PowerPC/PPCBranchSelector.cpp
+++ b/lib/Target/PowerPC/PPCBranchSelector.cpp
@@ -40,7 +40,8 @@ namespace {
// minor pessimization that saves us from having to worry about
// keeping the offsets up to date later when we emit long branch glue.
return 12;
- case PPC::IMPLICIT_DEF: // no asm emitted
+ case PPC::IMPLICIT_DEF_GPR: // no asm emitted
+ case PPC::IMPLICIT_DEF_FP: // no asm emitted
return 0;
default:
break;