diff options
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 185a9a72fa3..9d8850b59f5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -3556,7 +3556,7 @@ SDValue DAGCombiner::visitMUL(SDNode *N) {    //           x * 15 --> (x << 4) - x    //           x * -33 --> -((x << 5) + x)    //           x * -15 --> -((x << 4) - x) ; this reduces --> x - (x << 4) -  if (N1IsConst && TLI.decomposeMulByConstant(VT, N1)) { +  if (N1IsConst && TLI.decomposeMulByConstant(*DAG.getContext(), VT, N1)) {      // TODO: We could handle more general decomposition of any constant by      //       having the target set a limit on number of ops and making a      //       callback to determine that sequence (similar to sqrt expansion). | 

