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 4854e25 commit b8d2b77Copy full SHA for b8d2b77
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -3730,8 +3730,8 @@ void SelectionDAGBuilder::visitSelect(const User &I) {
3730
// ValueTracking's select pattern matching does not account for -0.0,
3731
// so we can't lower to FMINIMUM/FMAXIMUM because those nodes specify that
3732
// -0.0 is less than +0.0.
3733
- Value *LHS, *RHS;
3734
- auto SPR = matchSelectPattern(const_cast<User*>(&I), LHS, RHS);
+ const Value *LHS, *RHS;
+ auto SPR = matchSelectPattern(&I, LHS, RHS);
3735
ISD::NodeType Opc = ISD::DELETED_NODE;
3736
switch (SPR.Flavor) {
3737
case SPF_UMAX: Opc = ISD::UMAX; break;
0 commit comments