[all-commits] [llvm/llvm-project] d7267e: [ValueTracking] Let isGuaranteedNotToBeUndefOrPois...
Juneyoung Lee via All-commits
all-commits at lists.llvm.org
Thu Mar 5 08:09:03 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: d7267ee1941668d7e985681e29d10983799811a0
https://github.com/llvm/llvm-project/commit/d7267ee1941668d7e985681e29d10983799811a0
Author: Juneyoung Lee <aqjune at gmail.com>
Date: 2020-03-06 (Fri, 06 Mar 2020)
Changed paths:
M llvm/include/llvm/Analysis/ValueTracking.h
M llvm/lib/Analysis/InstructionSimplify.cpp
M llvm/lib/Analysis/ValueTracking.cpp
M llvm/test/Transforms/InstSimplify/freeze.ll
Log Message:
-----------
[ValueTracking] Let isGuaranteedNotToBeUndefOrPoison look into branch conditions of dominating blocks' terminators
Summary:
```
br i1 c, BB1, BB2:
BB1:
use1(c)
BB2:
use2(c)
```
In BB1 and BB2, c is never undef or poison because otherwise the branch would have triggered UB.
This is a resubmission of 952ad47 with crash fix of llvm/test/Transforms/LoopRotate/freeze-crash.ll.
Checked with Alive2
Reviewers: xbolva00, spatel, lebedev.ri, reames, jdoerfert, nlopes, sanjoy
Reviewed By: reames
Subscribers: jdoerfert, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D75401
More information about the All-commits
mailing list