projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb97d81
)
Use the new TLI method to get this.
author
Chris Lattner
<sabre@nondot.org>
Sun, 16 Jan 2005 01:11:19 +0000
(
01:11
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 16 Jan 2005 01:11:19 +0000
(
01:11
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19582
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 94aab32337859546c677b4ffbb75323aa63fe262..0b4ffa54f0a1dda786f80897387d47523b1a4d1f 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@
-79,9
+79,7
@@
namespace llvm {
unsigned NV = TLI.getNumElements(VT);
if (NV == 1) {
// If we are promoting this value, pick the next largest supported type.
- while (!TLI.hasNativeSupportFor(VT))
- VT = (MVT::ValueType)(VT+1);
- return MakeReg(VT);
+ return MakeReg(TLI.getTypeToTransformTo(VT));
}
// If this value is represented with multiple target registers, make sure