[PATCH] D111330: [InstCombine] Support arbitrary const shift amount for `lshr (sext i1 ...)`
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 13 05:28:02 PDT 2021
spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.
LGTM - see inline test comments.
================
Comment at: llvm/test/Transforms/PhaseOrdering/pr52078.ll:2-3
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -instcombine -S < %s | FileCheck %s --check-prefix=IC
; RUN: opt -aggressive-instcombine -instcombine -S < %s | FileCheck %s --check-prefix=AIC_AND_IC
----------------
1. Better to create a common prefix if output is always expected to be the same (just the default "CHECK" would do?).
2. Add a -O2 and/or -O3 run, so we know this behaves as expected with the normal pass pipelines (we still want to adjust AIC in those pipelines in another patch?).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111330/new/
https://reviews.llvm.org/D111330
More information about the llvm-commits
mailing list