OSDN Git Service

[ValueTracking] Remove duplicate call to computeKnownBits for the operands of Select.
authorCraig Topper <craig.topper@gmail.com>
Thu, 13 Apr 2017 20:39:37 +0000 (20:39 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 13 Apr 2017 20:39:37 +0000 (20:39 +0000)
commita402bd1ba7a881c54bb5592c939a70907fa2e14c
treef471268bebee4ce64e3bd0321a2aba1afa3fd74f
parent77643b4d4f9a774888216bfcc074bad38c25f816
[ValueTracking] Remove duplicate call to computeKnownBits for the operands of Select.

We call it unconditionally on the operands of the select. Then decide if its a min/max and call it on the min/max operands or on the select operands again. Either of those second calls will overwrite the results of the initial call so we can just delete the first call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300256 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp