[llvm] r254854 - [WebAssembly] Expand frem as a floating point library function.
Dan Gohman via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 5 11:15:57 PST 2015
Author: djg
Date: Sat Dec 5 13:15:57 2015
New Revision: 254854
URL: http://llvm.org/viewvc/llvm-project?rev=254854&view=rev
Log:
[WebAssembly] Expand frem as a floating point library function.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp?rev=254854&r1=254853&r2=254854&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp Sat Dec 5 13:15:57 2015
@@ -133,7 +133,8 @@ WebAssemblyTargetLowering::WebAssemblyTa
ISD::SETULT, ISD::SETULE, ISD::SETUGT, ISD::SETUGE})
setCondCodeAction(CC, T, Expand);
// Expand floating-point library function operators.
- for (auto Op : {ISD::FSIN, ISD::FCOS, ISD::FSINCOS, ISD::FPOWI, ISD::FPOW})
+ for (auto Op : {ISD::FSIN, ISD::FCOS, ISD::FSINCOS, ISD::FPOWI, ISD::FPOW,
+ ISD::FREM})
setOperationAction(Op, T, Expand);
// Note supported floating-point library function operators that otherwise
// default to expand.
More information about the llvm-commits
mailing list