[llvm-commits] [dragonegg] r132122 - /dragonegg/trunk/src/x86/Target.cpp
Duncan Sands
baldrick at free.fr
Thu May 26 06:08:46 PDT 2011
Author: baldrick
Date: Thu May 26 08:08:46 2011
New Revision: 132122
URL: http://llvm.org/viewvc/llvm-project?rev=132122&view=rev
Log:
Found a testcase for this, which immediately detected a stupido.
Modified:
dragonegg/trunk/src/x86/Target.cpp
Modified: dragonegg/trunk/src/x86/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/x86/Target.cpp?rev=132122&r1=132121&r2=132122&view=diff
==============================================================================
--- dragonegg/trunk/src/x86/Target.cpp (original)
+++ dragonegg/trunk/src/x86/Target.cpp Thu May 26 08:08:46 2011
@@ -775,7 +775,8 @@
StoreInst *SI = Builder.CreateStore(Ops[1], Ptr);
SI->setMetadata(TheModule->getMDKindID("nontemporal"), Node);
SI->setAlignment(16);
- return SI;
+ Result = SI;
+ return true;
}
case sqrtpd:
case sqrtpd256:
@@ -786,7 +787,8 @@
const Type *Ty = Ops[0]->getType();
Function *sqrt = Intrinsic::getDeclaration(TheModule, Intrinsic::sqrt, &Ty,
1);
- return Builder.CreateCall(sqrt, Ops[0]);
+ Result = Builder.CreateCall(sqrt, Ops[0]);
+ return true;
}
}
DieAbjectly("Builtin not implemented!", stmt);
More information about the llvm-commits
mailing list