[PATCH] D90217: [AMDGPU][GlobalISel] Fold a chain of two shift instructions with constant operands
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 9 02:10:10 PST 2020
foad accepted this revision.
foad added a comment.
This revision is now accepted and ready to land.
LGTM modulo minor comment inline.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:1577-1578
+
+ // Producing saturating unsigned left shift that exceeds scalar size will give
+ // us undefined result.
+ if (Opcode == TargetOpcode::G_USHLSAT &&
----------------
The comment could be improved. (What you wrote is also true of all the other shifts.) How about "there is no simple replacement for a saturating unsigned left shift that exceeds the scalar size"?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90217/new/
https://reviews.llvm.org/D90217
More information about the llvm-commits
mailing list