We could try harder and handle non-splat vector constants too, but that seems much rarer to me.
Note that the div test isn't resolved because there's a check for isIntegerTy() guarding that transform.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Analysis/ValueTracking.cpp | ||
---|---|---|
1504–1508 ↗ | (On Diff #58008) | I think you could use m_APInt to merge these cases together. |
Comment Actions
LGTM
lib/Analysis/ValueTracking.cpp | ||
---|---|---|
1504 ↗ | (On Diff #58018) | I don't think you need to initialize this. |