If the add has more than one use then applying the transformation won't cause it to be removed, so we can end up applying it again causing an infinite loop.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Oh yeah, this certainly wasn't meant to introduce more nodes. LGTM, thanks.
llvm/lib/Target/ARM/ARMISelLowering.cpp | ||
---|---|---|
13353 | N1->hasOneUse() will do the same as getting the node. |
N1->hasOneUse() will do the same as getting the node.