This was noted in PR24766:
https://llvm.org/bugs/show_bug.cgi?id=24766#c2
We may not know whether the sign bit(s) are zero or one, but we can still optimize based on knowing that the sign bit is repeated.
Differential D20275
[SimplifyCFG] eliminate switch cases based on known range of switch condition spatel on May 15 2016, 11:58 AM. Authored by
Details This was noted in PR24766: We may not know whether the sign bit(s) are zero or one, but we can still optimize based on knowing that the sign bit is repeated.
Diff Detail
|