Clear the OpAction field before setting it. This allows a target to set
authorChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2006 06:09:03 +0000 (06:09 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Jan 2006 06:09:03 +0000 (06:09 +0000)
an instruction operation action to Expand, then set it to Legal later.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25812 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index 0d64271199c79e2ca35730ce5152dce227caa63f..d10e63c66b7ccfe83f39bc7f14b01bf08dd8a8e2 100644 (file)
@@ -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;
   }