diff options
author | Craig Topper <craig.topper@intel.com> | 2017-07-06 18:39:49 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-07-06 18:39:49 +0000 |
commit | ca2c87653cfd6831124d654617950d1e906cadb8 (patch) | |
tree | 6bd0599a6233034c25ce9416094575c11c755387 /llvm/lib/Transforms/InstCombine | |
parent | 79ab643da842b03da893a0188426450525e6ada5 (diff) | |
download | bcm5719-llvm-ca2c87653cfd6831124d654617950d1e906cadb8.tar.gz bcm5719-llvm-ca2c87653cfd6831124d654617950d1e906cadb8.zip |
[Constants] Replace calls to ConstantInt::equalsInt(0)/equalsInt(1) with isZero and isOne. NFCI
llvm-svn: 307293
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 67e5e9c2b1c..4e957f3614c 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -860,7 +860,7 @@ static Value *simplifyX86extrq(IntrinsicInst &II, Value *Op0, } // Constant Fold - extraction from zero is always {zero, undef}. - if (CI0 && CI0->equalsInt(0)) + if (CI0 && CI0->isZero()) return LowConstantHighUndef(0); return nullptr; |