HomePhabricator

[LoopIdiomRecognize] Minor cleanups to the FFS idiom matching. NFC

Authored by craig.topper on Wed, Apr 7, 9:44 AM.

Description

[LoopIdiomRecognize] Minor cleanups to the FFS idiom matching. NFC

-Make sure of the CreateShl/LShr/AShr methods that take a uint64_t
instead of creating a ConstantInt for 1 ourselves.
-Use Builder.getInt1 or ConstantInt::getBool instead of a conditional.
-Pull out repeated calls to getType.

Details

Committed
craig.topperWed, Apr 7, 10:03 AM
Parents
rG3acf49829c00: [mlir][sparse] support integral types i32,i16,i8 for *numerical* values
Branches
Unknown
Tags
Unknown