[JumpThreading] Add a basic support for freeze instruction
authorJuneyoung Lee <aqjune@gmail.com>
Tue, 28 Jul 2020 18:11:57 +0000 (03:11 +0900)
committerJuneyoung Lee <aqjune@gmail.com>
Tue, 28 Jul 2020 18:12:14 +0000 (03:12 +0900)
commit4c9af6d0e001bf76007527899df7a9d8860c9a5a
tree5aa3491997c4e59e8f8919747b90f856328c4885
parent745eb02496b515cc8292dd7f9d7f0db43e162013
[JumpThreading] Add a basic support for freeze instruction

This patch adds a basic support for freeze instruction to JumpThreading
by making ComputeValueKnownInPredecessorsImpl look into its operand.

Reviewed By: efriedma, nikic

Differential Revision: https://reviews.llvm.org/D84598
llvm/lib/Transforms/Scalar/JumpThreading.cpp
llvm/test/Transforms/JumpThreading/freeze.ll