I was sure I had thought about this and there was a reason it should work.
But it is entirely possible I am just crazy.
llvm-svn: 21640
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
index 819d94f..574f864 100644
--- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -1199,13 +1199,14 @@
}
}
- if (DestType == MVT::f64 || DestType == MVT::f32 ||
- (
- (opcode == ISD::LOAD || opcode == ISD::CopyFromReg ||
- opcode == ISD::EXTLOAD) &&
- (N.getValue(0).getValueType() == MVT::f32 ||
- N.getValue(0).getValueType() == MVT::f64)
- )
+ if ((DestType == MVT::f64 || DestType == MVT::f32 ||
+ (
+ (opcode == ISD::LOAD || opcode == ISD::CopyFromReg ||
+ opcode == ISD::EXTLOAD) &&
+ (N.getValue(0).getValueType() == MVT::f32 ||
+ N.getValue(0).getValueType() == MVT::f64)
+ ))
+ && opcode != ISD::CALL
)
return SelectExprFP(N, Result);