[PATCH] D84664: [InstCombine] Fold shift-select if all the operands are constant
Matteo Favaro via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 01:41:42 PDT 2020
fvrmatteo added a comment.
I reduced the bit-width to i8 and the same issue is happening when I only disable the `if (!I->hasOneUse()) return false;` line from **canEvaluateShifted**. Is there a chance that disabling the check is not sufficient but that would actually require more changes?
Attached you can find the narrowed down test case executed with the disabled line and its debug output.F12425130: instcombine.log <https://reviews.llvm.org/F12425130>
F12425129: lshr-select-const-i8.ll <https://reviews.llvm.org/F12425129>
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84664/new/
https://reviews.llvm.org/D84664
More information about the llvm-commits
mailing list