[all-commits] [llvm/llvm-project] 476ff0: [InstSimplify] Cleanup out-of-range shift amount h...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Mon Feb 22 09:03:08 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 476ff0327b7a97af50a15c7a8c3e0a6513627a8e
https://github.com/llvm/llvm-project/commit/476ff0327b7a97af50a15c7a8c3e0a6513627a8e
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2021-02-22 (Mon, 22 Feb 2021)
Changed paths:
M llvm/lib/Analysis/InstructionSimplify.cpp
Log Message:
-----------
[InstSimplify] Cleanup out-of-range shift amount handling.
Use APInt::uge() direct instead of getLimitedValue().
Use KnownBits::getMinValue() to make the bounds check more obvious.
More information about the All-commits
mailing list