This currently uses ConstantExpr to do its math, but as noted in a TODO it can all be done directly on APInt.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
61–71 ↗ | (On Diff #117254) | This appears to handle non-splat vectors. Does the new code achieve the same result? |
lib/Transforms/InstCombine/InstCombineCompares.cpp | ||
---|---|---|
61–71 ↗ | (On Diff #117254) | Yes the existing code handled splat vectors, but I don't think the capability was ever used. The caller ensure it was either a scalar or a splat vector before we ever did any math. |