Fix typo in expandStrcmp method.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
The general alternative here is to not make AggressiveInstCombine produce better code, but rather teach something else to optimize the pattern it does produce, with the benefit that it can also help other code.
This seems like foldOpIntoPhi() for icmps should nearly handle -- I expect the problem is that we lose the fact that the icmp of the phi is false for one incoming value, because that fact is only known on the edge, while we perform simplification at the terminator of the predecessor. Adding a special case for that based on isImpliedCond should probably be sufficient to simplify this pattern.
It seems that title of revision is "[AggressiveInstCombine][NFC] Fix typo". Do you mean to put NFC at the beginning ?
I don't really understand this, can you add a comment explaining this.