[PATCH] D47156: [DAGCombiner] isAllOnesConstantOrAllOnesSplatConstant(): look through bitcasts
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 21 13:21:29 PDT 2018
spatel added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:916
static bool isAllOnesConstantOrAllOnesSplatConstant(SDValue N) {
+ while (N.getOpcode() == ISD::BITCAST)
+ N = N->getOperand(0);
----------------
Use peekThroughBitcast()
Should we do the same for isOneConstantOrOneSplatConstant and isNullConstantOrNullSplatConstant?
Repository:
rL LLVM
https://reviews.llvm.org/D47156
More information about the llvm-commits
mailing list