[PATCH] D65380: [InstCombine] Shift amount reassociation: shl-trunc-shl pattern
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 07:37:06 PDT 2019
xbolva00 added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp:32
+ InstCombiner::BuilderTy &Builder) {
+ // Look for: (Sh0Op0 (???)) shiftopcode ShAmt0
+ Instruction *Sh0Op0;
----------------
Is “???” something common in this codebase? I haven’t seen it yet.
Personally I think the code gives better idea what is going on than currently the comment - (Sh0Op0 (???)) is confusing for me.
What do you think?
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp:78
+ X->getType()->getScalarSizeInBits()))))
+ return nullptr; // FIXME; could perform constant-folding.
+
----------------
FIXME:
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65380/new/
https://reviews.llvm.org/D65380
More information about the llvm-commits
mailing list