When X is a constant, CreateLShr() returns a constant instead of an instruction.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Test missing, and i strongly suspect this is dead code, it should already happen automatically.
Comment Actions
I've taken the liberty of deleting this code entirely in https://github.com/llvm/llvm-project/commit/efece08ae27d8ace684c5119d6696b1a18b2150f. We rely on automatic debug loc assignment everywhere else in InstCombine, I don't see any reason why this fold would need special treatement.