Skip to content
Commit 8fabdfe9 authored by Craig Topper's avatar Craig Topper
Browse files

[InstCombine] Don't use AddOne/SubOne to see if two APInts are 1 apart. Use...

[InstCombine] Don't use AddOne/SubOne to see if two APInts are 1 apart. Use APInt operations instead. NFCI

AddOne/SubOne create new Constant objects. That seems heavy for
comparing ConstantInts which wrap APInts. Just do the math on
on the APInts and compare them.

llvm-svn: 366648
parent b4e06328
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment