[cfe-commits] r45440 - /cfe/trunk/CodeGen/CGExprScalar.cpp
Nate Begeman
natebegeman at mac.com
Sat Dec 29 17:28:16 PST 2007
Author: sampo
Date: Sat Dec 29 19:28:16 2007
New Revision: 45440
URL: http://llvm.org/viewvc/llvm-project?rev=45440&view=rev
Log:
Allow codegen of vector fdiv
Modified:
cfe/trunk/CodeGen/CGExprScalar.cpp
Modified: cfe/trunk/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExprScalar.cpp?rev=45440&r1=45439&r2=45440&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/CodeGen/CGExprScalar.cpp Sat Dec 29 19:28:16 2007
@@ -682,7 +682,7 @@
Value *ScalarExprEmitter::EmitDiv(const BinOpInfo &Ops) {
- if (Ops.LHS->getType()->isFloatingPoint())
+ if (Ops.LHS->getType()->isFPOrFPVector())
return Builder.CreateFDiv(Ops.LHS, Ops.RHS, "div");
else if (Ops.Ty->isUnsignedIntegerType())
return Builder.CreateUDiv(Ops.LHS, Ops.RHS, "div");
More information about the cfe-commits
mailing list