Use IRBuilder instead PHINode::Create. This should not impact the
generated code, but IRBuilder provides a way to register callbacks for
inserted instructions, which is convenient for some users.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, but shouldn't the patch as-is should be marked as "NFC"?
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp | ||
---|---|---|
1781 | Why is this now needed? fixupLCSSAFormFor() already preserves insertion point. |
Comment Actions
Now all instructions inserted as part of LCSSA PHI node creation are marked as 'inserted', whereas before only the final ones were. There weren't any binary changes on SPEC2000/SPEC2006/MultiSource with -O3 -flto, but I guess there some users of the expander could also skip the inserted PHI nodes now. Extremely unlikely to cause any changes in the end, but it slightly changes what the expander considers as 'inserted'. Hence I'd prefer it not to be marked as NFC, but it's borderline I think.
llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp | ||
---|---|---|
1781 | Yeah, I'll drop it. |
Why is this now needed? fixupLCSSAFormFor() already preserves insertion point.