OSDN Git Service

[SelectionDAG] Don't subject ISD:Constant to the depth limit in TargetLowering::Simpl...
authorCraig Topper <craig.topper@intel.com>
Sat, 21 Oct 2017 02:27:19 +0000 (02:27 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 21 Oct 2017 02:27:19 +0000 (02:27 +0000)
commitcbc06db9509f2b5bbf9b949e2979892c583a8435
tree88393d63a24d8dfe5ea8956e01a60bfaf9fc38f1
parentabd557f982225f88017cb9c2cce6da2917f55633
[SelectionDAG] Don't subject ISD:Constant to the depth limit in TargetLowering::SimplifyDemandedBits.

Summary:
We shouldn't recurse any further but it doesn't mean we shouldn't be able to give the known bits for a constant. The caller would probably like that we always return the right answer for a constant RHS. This matches what InstCombine does in this case.

I don't have a test case because this showed up while trying to revive D31724.

Reviewers: RKSimon, spatel

Reviewed By: RKSimon

Subscribers: arsenm, llvm-commits

Differential Revision: https://reviews.llvm.org/D38967

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316255 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp