summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-30 06:09:03 +0000
committerChris Lattner <sabre@nondot.org>2006-01-30 06:09:03 +0000
commitb15e1d07c34b96f2032d9de4a38c4d39ac329b6c (patch)
treecdca71ed37183f0deb5dfa490cd7d69e01d790eb
parent321e337d954c00914320f6646aff66e94dda3727 (diff)
downloadbcm5719-llvm-b15e1d07c34b96f2032d9de4a38c4d39ac329b6c.tar.gz
bcm5719-llvm-b15e1d07c34b96f2032d9de4a38c4d39ac329b6c.zip
Clear the OpAction field before setting it. This allows a target to set
an instruction operation action to Expand, then set it to Legal later. llvm-svn: 25812
-rw-r--r--llvm/include/llvm/Target/TargetLowering.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h
index 0d64271199c..d10e63c66b7 100644
--- a/llvm/include/llvm/Target/TargetLowering.h
+++ b/llvm/include/llvm/Target/TargetLowering.h
@@ -368,6 +368,7 @@ protected:
LegalizeAction Action) {
assert(VT < 32 && Op < sizeof(OpActions)/sizeof(OpActions[0]) &&
"Table isn't big enough!");
+ OpActions[Op] &= ~(3ULL << VT*2);
OpActions[Op] |= Action << VT*2;
}
OpenPOWER on IntegriCloud