diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2017-04-26 20:56:07 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2017-04-26 20:56:07 +0000 |
commit | 2c75c630635c4a087fa93b5755d7fb92a6aab00a (patch) | |
tree | 7c33509b47d21f37973cd1899d04a810710e7d5a /llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp | |
parent | 74233bed59a47cd9cf52adb0a22c4dcee38dc5fb (diff) | |
download | bcm5719-llvm-2c75c630635c4a087fa93b5755d7fb92a6aab00a.tar.gz bcm5719-llvm-2c75c630635c4a087fa93b5755d7fb92a6aab00a.zip |
InstCombine: Use the new SimplifyQuery versions of Simplify*. Use AssumptionCache, DominatorTree, TargetLibraryInfo everywhere.
llvm-svn: 301464
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp index 76829c5e457..7afb8814fe5 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp @@ -1121,8 +1121,7 @@ Instruction *InstCombiner::visitSelectInst(SelectInst &SI) { Value *FalseVal = SI.getFalseValue(); Type *SelType = SI.getType(); - if (Value *V = - SimplifySelectInst(CondVal, TrueVal, FalseVal, DL, &TLI, &DT, &AC)) + if (Value *V = SimplifySelectInst(CondVal, TrueVal, FalseVal, SQ)) return replaceInstUsesWith(SI, V); if (Instruction *I = canonicalizeSelectToShuffle(SI)) |