diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-15 11:19:12 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-06-15 11:19:12 +0000 |
commit | baff46f192fd028af8950f2e3824ea7c71fbd76e (patch) | |
tree | 1fa71dbb2d2d2f50845385ba09c9011fa4eb1e9d /lib/CodeGen/SelectionDAG/LegalizeTypes.h | |
parent | 1e56a2a85fbafce5ceee72f72d41b84a71876844 (diff) | |
download | external_llvm-baff46f192fd028af8950f2e3824ea7c71fbd76e.zip external_llvm-baff46f192fd028af8950f2e3824ea7c71fbd76e.tar.gz external_llvm-baff46f192fd028af8950f2e3824ea7c71fbd76e.tar.bz2 |
Enable the simplification of truncating-store after fixing the usage of
GetDemandBits (which must operate on the vector element type).
Fix the a usage of getZeroExtendInReg which must also be done on scalar types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeTypes.h')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeTypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.h b/lib/CodeGen/SelectionDAG/LegalizeTypes.h index b2f966b..06dc40f 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypes.h +++ b/lib/CodeGen/SelectionDAG/LegalizeTypes.h @@ -201,7 +201,7 @@ private: EVT OldVT = Op.getValueType(); DebugLoc dl = Op.getDebugLoc(); Op = GetPromotedInteger(Op); - return DAG.getZeroExtendInReg(Op, dl, OldVT); + return DAG.getZeroExtendInReg(Op, dl, OldVT.getScalarType()); } // Integer Result Promotion. |