OSDN Git Service

[InstCombine] Pass a proper context instruction to all of the calls into InstSimplify
authorCraig Topper <craig.topper@gmail.com>
Fri, 9 Jun 2017 03:21:29 +0000 (03:21 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 9 Jun 2017 03:21:29 +0000 (03:21 +0000)
commitd93348f701c1eeb442b066911346586594d9450a
tree84fee4e6d745288ce4fcbf1d89fb8a7506efe8c9
parent67d04e8fdfc56a9040357672b97f1a38714aa7a8
[InstCombine] Pass a proper context instruction to all of the calls into InstSimplify

Summary: This matches the behavior we already had for compares and makes us consistent everywhere.

Reviewers: dberlin, hfinkel, spatel

Reviewed By: dberlin

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D33604

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305049 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAddSub.cpp
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
lib/Transforms/InstCombine/InstCombinePHI.cpp
lib/Transforms/InstCombine/InstCombineSelect.cpp
lib/Transforms/InstCombine/InstCombineShifts.cpp
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
lib/Transforms/InstCombine/InstructionCombining.cpp