Details
Details
- Reviewers
spatel - Commits
- rG716b9dd0d84a: [InstCombine] Preserve FMF for powi simplifications.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
LGTM
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
887 | It would be another patch, but if you're looking at powi code, it would be nice to update this with something like: match(II->getArgOperand, m_APInt(ExponentC)) That would allow us to also match vector powi calls in addition to the current scalar calls. |
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
887 | Thank you Sanjay for review. Regarding your suggestion, according to LangRef the exponent argument is always scalar for powi. So that would probably be just a cosmetic change as existing code handles vector types for "base" argument. |
It would be another patch, but if you're looking at powi code, it would be nice to update this with something like:
That would allow us to also match vector powi calls in addition to the current scalar calls.