Skip to content
Commit fbe1dc24 authored by Zhou Sheng's avatar Zhou Sheng
Browse files

If BitWidth equals to ShtAmt, the RHSKnownZero[BitWidth-ShiftAmt-1] will

crash the opt. Just fix this.

Test case in llvm/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll

llvm-svn: 52003
parent 5eef32ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment