Motivation: https://bugs.llvm.org/show_bug.cgi?id=35709. I'm not sure how do I need to handle NSWSHL, NUWSHL, SHL
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Analysis/InstructionSimplify.cpp | ||
---|---|---|
997 | I believe this needs to be m_NUWShl. | |
test/Transforms/InstSimplify/div.ll | ||
147–154 | This seems wrong as per https://www.rise4fun.com/Alive/Gslf
|
lib/Analysis/InstructionSimplify.cpp | ||
---|---|---|
997 | Is that not trivially extendable to (X << C) / X -> C for any C <= bitwidth(X) ? |
lib/Analysis/InstructionSimplify.cpp | ||
---|---|---|
997 | I think that would be pow(2, C), not just C |
I believe this needs to be m_NUWShl.