[PATCH] D112085: [DAGCombiner] fold bit-hack form of usubsat
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 22 07:26:01 PDT 2021
foad added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:5653
+
+ // (i8 X ^ 128) & (i8 X s>> 7) --> usubsat X, 128
+ SDLoc DL(N);
----------------
What about the same thing with X +/- 128 instead of X ^ 128? Do they already get canonicalized to the XOR version?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112085/new/
https://reviews.llvm.org/D112085
More information about the llvm-commits
mailing list