We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074308c commit 9a32b14Copy full SHA for 9a32b14
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -6233,7 +6233,17 @@ bool SelectionDAG::cannotBeOrderedNegativeFP(SDValue Op) const {
6233
if (ConstantFPSDNode *C1 = isConstOrConstSplatFP(Op, true))
6234
return !C1->isNegative();
6235
6236
- return Op.getOpcode() == ISD::FABS;
+ switch (Op.getOpcode()) {
6237
+ case ISD::FABS:
6238
+ case ISD::FEXP:
6239
+ case ISD::FEXP2:
6240
+ case ISD::FEXP10:
6241
+ return true;
6242
+ default:
6243
+ return false;
6244
+ }
6245
+
6246
+ llvm_unreachable("covered opcode switch");
6247
}
6248
6249
bool SelectionDAG::isEqualTo(SDValue A, SDValue B) const {
0 commit comments