[llvm] [InstCombine] Prevent infinite loop with two shifts (PR #118806)

Maurice Heumann via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 06:32:13 PST 2024


momo5502 wrote:

> I think it may be better to address this by replacing the check in
> 
> https://github.com/llvm/llvm-project/blob/5977d79c6ce41cfc4cbf18764eec8cae1c40f12a/llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp#L430
> 
> with a check for ImmConstant.

done

https://github.com/llvm/llvm-project/pull/118806


More information about the llvm-commits mailing list