projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20a7997
)
llvm.fmuladd.* lowering should be checking isOperationLegalOrCustom, rather than
author
Lang Hames
<lhames@gmail.com>
Thu, 22 Nov 2012 03:31:45 +0000
(
03:31
+0000)
committer
Lang Hames
<lhames@gmail.com>
Thu, 22 Nov 2012 03:31:45 +0000
(
03:31
+0000)
isOperationLegal. Thanks to Craig Topper for pointing this out.
llvm-svn: 168485
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index
3396d64
..
ae94d1e
100644
(file)
--- a/
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@
-4994,7
+4994,7
@@
SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
case Intrinsic::fmuladd: {
EVT VT = TLI.getValueType(I.getType());
if (TM.Options.AllowFPOpFusion != FPOpFusion::Strict &&
- TLI.isOperationLegal(ISD::FMA, VT) &&
+ TLI.isOperationLegal
OrCustom
(ISD::FMA, VT) &&
TLI.isFMAFasterThanMulAndAdd(VT)){
setValue(&I, DAG.getNode(ISD::FMA, dl,
getValue(I.getArgOperand(0)).getValueType(),