[PATCH] D26098: [SelectionDAG] Fix a crash visiting `AND` nodes

escha via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 28 14:11:36 PDT 2016

escha added a comment.

Might it be better to just bail if ShiftBits is zero? This seems like a classic case of "trying to optimize a node that itself is going to disappear when it gets combine()'d", so maybe we should just not do this "optimization" if the shift is no shift at all.


More information about the llvm-commits mailing list