[DAG] avoid creating illegal node when transforming negated shifted sign bit
authorSanjay Patel <spatel@rotateright.com>
Fri, 14 Oct 2016 19:46:31 +0000 (19:46 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 14 Oct 2016 19:46:31 +0000 (19:46 +0000)
commit72b5ff646d70bc799f16b5c65aca6a69cf484ee8
tree6c3044779123887bea4af04c6d19ca03ea692304
parent09c2bd6bd42acb172e847d5088014512e97b37f8
[DAG] avoid creating illegal node when transforming negated shifted sign bit

Eli noted this potential bug in the post-commit thread for:
https://reviews.llvm.org/rL284239
...but I'm not sure how to trigger it, so there's no test case yet.

llvm-svn: 284268
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp