Nilstrieb
21a870515b
Fix clippy::needless_borrow in the compiler
...
`x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`.
Then I had to remove a few unnecessary parens and muts that were exposed
now.
2023-11-21 20:13:40 +01:00
Camille GILLOT
8c2c695c9e
Simplify back-edge logic.
2023-05-17 12:18:55 +00:00
Camille GILLOT
fa8598cb50
Merge DominatorTree and Dominators.
2023-05-17 10:37:29 +00:00
Tomasz Miąsko
aa1267f630
Preprocess dominator tree to answer queries in O(1)
2023-05-17 09:36:12 +00:00
Matthias Krüger
a1a6588162
don't into self
...
don't into()-convert types to themselves
2023-02-16 18:30:25 +01:00
Bryan Garza
1bbd655888
Improve efficiency of has_back_edge(...)
2023-01-24 00:01:37 +00:00
Bryan Garza
7618163a1c
Add comments and remove unnecessary code
2023-01-23 23:56:22 +00:00
Bryan Garza
8d99b0fc8d
Abstract out has_back_edge fn
2023-01-23 23:56:22 +00:00
Bryan Garza
009beb00bc
Change code to use map insead of for-loop
2023-01-23 23:56:22 +00:00
Bryan Garza
026a67377f
Clean up CtfeLimit MirPass
2023-01-23 23:56:22 +00:00
Bryan Garza
360db516cc
Create stable metric to measure long computation in Const Eval
...
This patch adds a `MirPass` that tracks the number of back-edges and
function calls in the CFG, adds a new MIR instruction to increment a
counter every time they are encountered during Const Eval, and emit a
warning if a configured limit is breached.
2023-01-23 23:56:22 +00:00