CanProveNotTakenFirstIteration utility does not handle the case when
condition of the branch is a constant. Add its handling.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM w/minor changes
Separately, Serguei, you should try to figure out what the pass ordering problem in our downstream pipeline was that we don't simplify the branches away before we get to LICM. This patch is definitely useful though, so that's an orthogonal improvement to pursue.
test/Analysis/MustExecute/const-cond.ll | ||
---|---|---|
4 | Can you add a comment above to indicate the value of this w.r.t. eliminating pass ordering dependencies? | |
test/Transforms/LICM/hoist-mustexec.ll | ||
221 | This isn't the intent of this test. Can you tweak the test to ensure this keeps testing the negative case? |
Can you add a comment above to indicate the value of this w.r.t. eliminating pass ordering dependencies?