[InstCombine] fix bug in pow expansion
authorSanjay Patel <spatel@rotateright.com>
Tue, 15 Sep 2020 13:27:16 +0000 (09:27 -0400)
committerSanjay Patel <spatel@rotateright.com>
Tue, 15 Sep 2020 13:29:48 +0000 (09:29 -0400)
commitaa57c1c967078a8c02e7fc2c837853dbd7cc66f4
treea0bcceeb991cbb6a28511997ba7aff741911034a
parent7ffc9aa538dfa3facbbb09d3b0d517a59e967d0e
[InstCombine] fix bug in pow expansion

There at least one other bug related to pow -> sqrt transforms:
http://lists.llvm.org/pipermail/llvm-dev/2020-September/145051.html
...but we probably can't solve that without fixing this first.
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/pow-4.ll