This lets us optimize away selects that perform the same address computation in two different ways and is also the first step towards being able to handle selects between two different, but compatible, address computations.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/CodeGen/CodeGenPrepare.cpp | ||
---|---|---|
4461–4462 | Please update at least this comment. Now the variable PhiSeen means not only Phi but also Select. |
Comment Actions
It's quite possible that we never actually see this kind of input, but this patch is just part of D38133 that's been split out to simplify things.
lib/CodeGen/CodeGenPrepare.cpp | ||
---|---|---|
4396 | Please consider separation PhiSeen and SelectSeen, we probably will need it in future. |
Please consider separation PhiSeen and SelectSeen, we probably will need it in future.
From other side we can do it later if we really need it.
So it is up to you.