Fix typos in compiler
This commit is contained in:
parent
a73288371e
commit
677357d32b
71 changed files with 140 additions and 136 deletions
|
@ -83,7 +83,7 @@
|
|||
//! that ever have their address taken. Of course that requires actually having alias analysis
|
||||
//! (and a model to build it on), so this might be a bit of a ways off.
|
||||
//!
|
||||
//! * Various perf improvents. There are a bunch of comments in here marked `PERF` with ideas for
|
||||
//! * Various perf improvements. There are a bunch of comments in here marked `PERF` with ideas for
|
||||
//! how to do things more efficiently. However, the complexity of the pass as a whole should be
|
||||
//! kept in mind.
|
||||
//!
|
||||
|
|
|
@ -99,7 +99,7 @@ where
|
|||
//
|
||||
// This generates a `switchInt() -> [0: 0, 1: 1, otherwise: unreachable]`, which allows us or LLVM to
|
||||
// turn it into just `x` later. Without the unreachable, such a transformation would be illegal.
|
||||
// If the otherwise branch is unreachable, we can delete all other unreacahble targets, as they will
|
||||
// If the otherwise branch is unreachable, we can delete all other unreachable targets, as they will
|
||||
// still point to the unreachable and therefore not lose reachability information.
|
||||
let reachable_iter = targets.iter().filter(|(_, bb)| !is_unreachable(*bb));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue