Form dedicated exits after trivial unswitches.
Fixes PR38737, PR38283.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 22024 Build 22024: arc lint + arc unit
Event Timeline
test/Transforms/SimpleLoopUnswitch/formDedicatedAfterTrivial3.ll | ||
---|---|---|
2 | I would rather use a somewhat reduced version of it (getting IR dump just before the failing simple-loop-unswitch) - https://pastebin.com/5qYNZvxa fails with just: opt < %s -simple-loop-unswitch |
Comment Actions
source changes LGTM.
comments and suggested test change - up to your discretion.
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | ||
---|---|---|
306 | instead of "trivial switches" I would say something like: "after trivial unswitching it is possible to get new non-dedicated exits out of parent loop" |
instead of "trivial switches" I would say something like:
"after trivial unswitching it is possible to get new non-dedicated exits out of parent loop"